Browse Source

Resolving conflict

Kirk Trombley 6 years ago
parent
commit
251ec2a382
3 changed files with 17 additions and 1 deletions
  1. 0 1
      config/config.toml
  2. 1 0
      src/plugins/__init__.py
  3. 16 0
      src/plugins/meme.py

+ 0 - 1
config/config.toml

@@ -17,7 +17,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!"

+ 1 - 0
src/plugins/__init__.py

@@ -7,3 +7,4 @@ import plugins.simple
 import plugins.curse
 import plugins.teamspeak
 import plugins.the_house
+import plugins.meme

+ 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)