# Overwatch Hero Icons

**URL:** https://meta.discourse.org/t/overwatch-hero-icons/51365
**Category:** Plugin
**Created:** [10 oktober 2016 om 23:26 UTC](https://meta.discourse.org/t/overwatch-hero-icons/51365 "2016-10-10T23:26:10Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![DanielMarquard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danielmarquard/32/74010_2.png) [@DanielMarquard](https://meta.discourse.org/u/DanielMarquard)
#### Post date: [10 oktober 2016 om 23:26 UTC](https://meta.discourse.org/t/overwatch-hero-icons/51365/1 "2016-10-10T23:26:10Z")

</div>

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](https://github.com/critcola/discourse-overwatch-hero-icons).

## Demo

See it in action and test it out for yourself on [Crit Cola’s Discourse](https://critcola.com/community/t/new-overwatch-hero-emoji-icons/153?utm_source=meta.discourse.org&utm_medium=plugin-topic&utm_term=demo-text&utm_content=overwatch-hero-icons&utm_campaign=development).

[![](https://global.discourse-cdn.com/meta/original/3X/2/7/27e30408361ee3a6eab190760e23c3bdb8793939.PNG)](https://critcola.com/community/t/new-overwatch-hero-emoji-icons/153?utm_source=meta.discourse.org&utm_medium=plugin-topic&utm_term=demo-screenshot&utm_content=overwatch-hero-icons&utm_campaign=development)

## Installation

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

```yml
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:

```plaintext
cd /var/discourse
./launcher rebuild app

```

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

```plaintext
cd /var/discourse
./launcher enter app
rake posts:rebake

```

---

<div class="post-metadata">

### Author: ![DanielMarquard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danielmarquard/32/74010_2.png) [@DanielMarquard](https://meta.discourse.org/u/DanielMarquard)
#### Post date: [6 december 2016 om 22:46 UTC](https://meta.discourse.org/t/overwatch-hero-icons/51365/2 "2016-12-06T22:46:51Z")

</div>

My Overwatch Hero Icons plugin for Discourse has been updated to version 1.0, and now includes [icons for Ana and Sombra](https://critcola.com/community/t/new-overwatch-hero-emoji-icons/153/11), 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.

---

<div class="post-metadata">

### Author: ![skozz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/skozz/32/119704_2.png) [@skozz](https://meta.discourse.org/u/skozz)
#### Post date: [28 december 2016 om 15:52 UTC](https://meta.discourse.org/t/overwatch-hero-icons/51365/3 "2016-12-28T15:52:23Z")

</div>

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 👍

---

<div class="post-metadata">

### Author: ![DanielMarquard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danielmarquard/32/74010_2.png) [@DanielMarquard](https://meta.discourse.org/u/DanielMarquard)
#### Post date: [28 december 2016 om 16:53 UTC](https://meta.discourse.org/t/overwatch-hero-icons/51365/4 "2016-12-28T16:53:35Z")

</div>

> [@skozz](#):
>
> I can’t use it in my forum (different contexts) but your repository has inspired me to do something similar for my forum.

That’s fantastic! Thank you for the feedback. 🙂

---

<div class="post-metadata">

### Author: ![DanielMarquard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danielmarquard/32/74010_2.png) [@DanielMarquard](https://meta.discourse.org/u/DanielMarquard)
#### Post date: [23 mei 2017 om 07:55 UTC](https://meta.discourse.org/t/overwatch-hero-icons/51365/6 "2017-05-23T07:55:31Z")

</div>

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

> **[Comparing 3d8f7f4b9ce8...96b3d272fc48 · critcola/discourse-overwatch-hero-icons](https://github.com/critcola/discourse-overwatch-hero-icons/compare/3d8f7f4b9ce8...96b3d272fc48)**
>
> A Discourse plugin for formatting Overwatch hero names in posts, prepending hero icons and correcting hero spelling and character case. - Comparing 3d8f7f4b9ce8...96b3d272fc48 · critcola/discourse-...

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