Browse Source

Making memes 5% less mean.

ivan 6 years ago
parent
commit
d4017dbbdb
2 changed files with 17 additions and 1 deletions
  1. 1 1
      config/config.toml
  2. 16 0
      src/plugins/meme.py

+ 1 - 1
config/config.toml

@@ -11,6 +11,7 @@ seychelles = [ "seychelles" ]
 curse = [ "curse", "bless" ]
 the_guy = [ "the_guy" ]
 the_house = [ "the_house", "shut_up" ]
+meme = [ "meme" ]
 
 [aliases]
 speemteek = "speamteek"
@@ -28,7 +29,6 @@ I am licensed as open source under the MIT license.
 """
 thanks = "You're welcome!"
 guess = "Rollbot's back - tell a friend!"
-meme = "fuck off"
 unmeme = "get a job"
 issues = "https://kirkleon.ddns.net/gogs/kirkleon/rollbot3/issues"
 bump = "Bumping the chat!\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nAll done!"

+ 16 - 0
src/plugins/meme.py

@@ -0,0 +1,16 @@
+import random
+
+from command_system import as_plugin, RollbotResponse
+
+@as_plugin
+def meme(db, message):
+
+        diceroll = random.randint(1,20)
+        good = "I love you."
+        bad = "Fuck off."
+
+        if diceroll = 20
+            return RollbotResponse(message, txt=good)
+
+        else
+            return RollbotResponse(message, txt=bad)