# Plugin: The Konami Code

**URL:** https://meta.discourse.org/t/plugin-the-konami-code/8473
**Category:** Plugin
**Created:** [July 18, 2013, 3:53pm UTC](https://meta.discourse.org/t/plugin-the-konami-code/8473 "2013-07-18T15:53:04Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![cfstras](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cfstras/32/103104_2.png) [@cfstras](https://meta.discourse.org/u/cfstras)
#### Post date: [July 18, 2013, 3:53pm UTC](https://meta.discourse.org/t/plugin-the-konami-code/8473/1 "2013-07-18T15:53:04Z")

</div>

This plugin adds the [Konami Code](https://www.howtogeek.com/659611/what-is-the-konami-code-and-how-do-you-use-it/#:~:text=Up%2C%20Up%2C%20Down%2C%20Down,cheats%20that%20help%20you%20win.) to Discourse.

When invoked, magic happens.

[https://github.com/cfstras/discourse-konami](https://github.com/cfstras/discourse-konami)  
It’s built on [Konami-JS](http://snaptortoise.com/konami-js/), which made this really easy `:)`

To install, just open your Docker container’s app.yml and be sure to have the following:

```yaml
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - mkdir -p plugins
          - git clone https://github.com/discourse/docker_manager.git
          # other plugins...
          - git clone https://github.com/cfstras/discourse-konami.git

```

Now, `./launcher rebuild` and off we go!

Open Discourse and ↑↑↓↓←→←→BAEnter!

Suggestions and patches are highly welcome.

---

<div class="post-metadata">

### Author: ![jbruni](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jbruni/32/106798_2.png) [@jbruni](https://meta.discourse.org/u/jbruni)
#### Post date: [July 18, 2013, 4:06pm UTC](https://meta.discourse.org/t/plugin-the-konami-code/8473/2 "2013-07-18T16:06:24Z")

</div>

Nice as a small sample of what is necessary to build and install an extension.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [July 18, 2013, 4:16pm UTC](https://meta.discourse.org/t/plugin-the-konami-code/8473/3 "2013-07-18T16:16:42Z")

</div>

I agree with @jbruni this is a great idea for a sample plugin or extension. Fun and actually somewhat useful!

---

<div class="post-metadata">

### Author: ![cfstras](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cfstras/32/103104_2.png) [@cfstras](https://meta.discourse.org/u/cfstras)
#### Post date: [July 18, 2013, 4:26pm UTC](https://meta.discourse.org/t/plugin-the-konami-code/8473/4 "2013-07-18T16:26:09Z")

</div>

I based it off of [Tutorial: Your first Discourse plugin](http://meta.discourse.org/t/tutorial-your-first-discourse-plugin/2611), so thanks to @danneu for that!

Every site should have the Konami Code

---

<div class="post-metadata">

### Author: ![x0rg](https://avatars.discourse-cdn.com/v4/letter/x/71e660/32.png) [@x0rg](https://meta.discourse.org/u/x0rg)
#### Post date: [July 18, 2013, 8:24pm UTC](https://meta.discourse.org/t/plugin-the-konami-code/8473/5 "2013-07-18T20:24:33Z")

</div>

Pretty cool! I wanted to do something like that.. do you have an idea for something similar to this to implement? I wanted to implement a simple plugin just to start with discourse…

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [March 20, 2015, 5:44am UTC](https://meta.discourse.org/t/plugin-the-konami-code/8473/6 "2015-03-20T05:44:22Z")

</div>

Someone needs to update this to work with Discourse 1.3!

---

<div class="post-metadata">

### Author: ![cfstras](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cfstras/32/103104_2.png) [@cfstras](https://meta.discourse.org/u/cfstras)
#### Post date: [March 20, 2015, 10:32am UTC](https://meta.discourse.org/t/plugin-the-konami-code/8473/7 "2015-03-20T10:32:28Z")

</div>

Done! was a quick fix.

Just ensure to put  
`- git clone https://github.com/cfstras/discourse-konami.git`  
in the plugins section of your `app.yml`.

~~(Sadly, I can’t edit my first post…)~~

---

<div class="post-metadata">

### Author: ![dosch](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dosch/32/51426_2.png) [@dosch](https://meta.discourse.org/u/dosch)
#### Post date: [March 15, 2017, 9:27am UTC](https://meta.discourse.org/t/plugin-the-konami-code/8473/8 "2017-03-15T09:27:59Z")

</div>

Great! I activated it 🙂

Now, is there a way to award a badge when a user does the konami code ?

---

<div class="post-metadata">

### Author: ![mikechristopher](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikechristopher/32/89135_2.png) [@mikechristopher](https://meta.discourse.org/u/mikechristopher)
#### Post date: [March 15, 2017, 10:19am UTC](https://meta.discourse.org/t/plugin-the-konami-code/8473/9 "2017-03-15T10:19:58Z")

</div>

Doesn’t look like it straight off. It would probably need to be modified in order to trigger a badge grant api call or an entry into the database and a badge query from that.

---

<div class="post-metadata">

### Author: ![varun21](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/varun21/32/246440_2.png) [@varun21](https://meta.discourse.org/u/varun21)
#### Post date: [January 18, 2022, 9:14am UTC](https://meta.discourse.org/t/plugin-the-konami-code/8473/10 "2022-01-18T09:14:47Z")

</div>

Ok so what exactly does it do? Any demo / video / example?

---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [January 18, 2022, 10:08am UTC](https://meta.discourse.org/t/plugin-the-konami-code/8473/11 "2022-01-18T10:08:15Z")

</div>

See the OP, I just updated it

> [@cfstras](#):
>
> This plugin adds the [Konami Code](https://www.howtogeek.com/659611/what-is-the-konami-code-and-how-do-you-use-it/#:~:text=Up%2C%20Up%2C%20Down%2C%20Down,cheats%20that%20help%20you%20win.) to Discourse.
> 
> When invoked, magic happens.

---

<div class="post-metadata">

### Author: ![varun21](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/varun21/32/246440_2.png) [@varun21](https://meta.discourse.org/u/varun21)
#### Post date: [January 18, 2022, 10:10am UTC](https://meta.discourse.org/t/plugin-the-konami-code/8473/12 "2022-01-18T10:10:05Z")

</div>

Yep, just recompiled. Your secret is safe 😂  
 ![Leonardo Dicaprio Love GIF](https://global.discourse-cdn.com/meta/original/3X/2/4/2497c61891d9ee190a59d4d6bd15c2dd3bc9170b.webp)
