Overwatch Hero Icons

(Daniel Marquard) #1

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.


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


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

    - exec:
        cd: $home/plugins
          - 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

(Daniel Marquard) #2

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.

(Angel Raul Molina Muñoz) #3

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:

(Daniel Marquard) #4

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

(Daniel Marquard) #6

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