Overwatch Hero Icons

This plugin for Discourse formats Overwatch hero names in posts. It tries to intelligently match hero names in users’ posts, including those that are horribly misspelled, correcting their spelling, adding accent marks and other special characters where necessary, and prepending the hero’s icon to their name.

I’ve released it under the MIT License on GitHub.

Demo

See it in action and test it out for yourself on Crit Cola’s Discourse.

Installation

Add the plugin’s repository URL to your container’s app.yml file, for example:

hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - mkdir -p plugins
          - git clone https://github.com/critcola/discourse-overwatch-hero-icons.git

Rebuild the container:

cd /var/discourse
./launcher rebuild app

For the plugin to apply retroactively, you’ll need to rebake old posts:

cd /var/discourse
./launcher enter app
rake posts:rebake
17 Likes

My Overwatch Hero Icons plugin for Discourse has been updated to version 1.0, and now includes icons for Ana and Sombra, among other changes. It is not necessary to rebake posts; references to Ana and Sombra in old posts should correctly display the icons after upgrading.

7 Likes

Wow as Overwatch player and as Discourse amateur developer I’ll say I like so much your plugin! I can’t use it in my forum (different contexts) but your repository has inspired me to do something similar for my forum.

thank you Daniel :thumbsup:

5 Likes

That’s fantastic! Thank you for the feedback. :slight_smile:

2 Likes

The Overwatch Hero Icons plugin has been updated to include Orisa’s icon.

https://github.com/critcola/discourse-overwatch-hero-icons/compare/3d8f7f4b9ce8...96b3d272fc48

https://critcola.com/community/t/discourse-overwatch-hero-icons/153/22?u=d3

1 Like