[somebot] /should_i_tu_it
authorSomeone <someone@somenet.org>
Wed, 8 Dec 2021 18:38:38 +0000 (19:38 +0100)
committerSomeone <someone@somenet.org>
Wed, 8 Dec 2021 18:38:38 +0000 (19:38 +0100)
modules/CommandShouldITUIt.py [new file with mode: 0644]

diff --git a/modules/CommandShouldITUIt.py b/modules/CommandShouldITUIt.py
new file mode 100644 (file)
index 0000000..f7382ef
--- /dev/null
@@ -0,0 +1,38 @@
+# Mattermost Bot module.
+#  Copyright (c) 2016-2021 by Someone <someone@somenet.org> (aka. Jan Vales <jan@jvales.net>)
+#  published under MIT-License
+
+import random
+
+
+from AbstractCommand import AbstractCommand
+class CommandShouldITUIt(AbstractCommand):
+    TRIGGER = "should_i_tu_it"
+    CONFIG = {"display_name": "somebot-command", "auto_complete": True,
+              "auto_complete_hint":  "",
+             }
+    USEINFO = CONFIG["auto_complete_desc"] = CONFIG["description"] = "Should I :tu: it?"
+
+    options = ["No",
+               "No?",
+               "Nope!",
+               "Nope! Nope! Nope!",
+               "#### Nope! Nope! Nope!",
+               "#### Noooooo!",
+               "#### Nooooooooo!",
+               "#### Nooooooooooooooooo!",
+               "~~Mayb~~ ...hooow about NO?",
+               "Definitely not!",
+               "#### Definitely not!",
+               "please no?",
+               "#### please, no!",
+               "Did you even need to ask that?",
+               "#### Next question!",
+               "Dont even think about it.",
+               "Hell no!",
+               "Why would you?",
+              ]
+
+
+    def on_POST(self, request, data):
+        request.cmd_respond_text_chan(random.choice(self.options))