cfstras
(Claus Strasburger)
2013 年7 月 18 日 15:53
1
This plugin adds the Konami Code to Discourse.
When invoked, magic happens.
It’s built on Konami-JS , which made this really easy :)
To install, just open your Docker container’s app.yml and be sure to have the following:
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 ↑ ↑ ↓ ↓ ← → ← → B A Enter !
Suggestions and patches are highly welcome.
13 个赞
jbruni
(J. Bruni)
2013 年7 月 18 日 16:06
2
Nice as a small sample of what is necessary to build and install an extension.
I agree with @jbruni this is a great idea for a sample plugin or extension. Fun and actually somewhat useful!
cfstras
(Claus Strasburger)
2013 年7 月 18 日 16:26
4
I based it off of Tutorial: Your first Discourse plugin , so thanks to @danneu for that!
Every site should have the Konami Code
x0rg
(Raffaele Di Fazio)
2013 年7 月 18 日 20:24
5
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…
Someone needs to update this to work with Discourse 1.3!
2 个赞
cfstras
(Claus Strasburger)
2015 年3 月 20 日 10:32
7
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…)
4 个赞
dosch
(dosch)
2017 年3 月 15 日 09:27
8
Great! I activated it
Now, is there a way to award a badge when a user does the konami code ?
1 个赞
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.
varun21
(Varun Sharma)
2022 年1 月 18 日 09:14
10
Ok so what exactly does it do? Any demo / video / example?
1 个赞
osioke
(Osioke Itseuwa)
2022 年1 月 18 日 10:08
11
See the OP, I just updated it
2 个赞
varun21
(Varun Sharma)
2022 年1 月 18 日 10:10
12
Yep, just recompiled. Your secret is safe