Overwatch Hero Icons

AI-generated summary

The discussion revolves around the Overwatch Hero Icons plugin for Discourse, developed by DanielMarquard. The plugin automatically formats Overwatch hero names in posts, correcting misspellings and adding icons and special characters. It is open-source under the MIT License and available on GitHub. The plugin has been updated to version 1.0, adding icons for Ana and Sombra, and later includes Orisa’s icon update. A demo is available on Crit Cola’s Discourse. Installation involves adding the plugin to app.yml and rebaking posts. skozz praises the plugin and says it inspired them to create a similar tool for their own forum.

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 „Gefällt mir“

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 „Gefällt mir“

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 „Gefällt mir“

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

2 „Gefällt mir“

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

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

1 „Gefällt mir“