]> git.somenet.org - pub/jan/mattermost-bot.git/blob - modules/CommandShouldITUIt.py
[somebot] /threads ["nice"|"oida"|"oidaaa"|"oida?"|"oida!"|"oida minusf"]
[pub/jan/mattermost-bot.git] / modules / CommandShouldITUIt.py
1 # Mattermost Bot module.
2 #  Copyright (c) 2016-2021 by Someone <someone@somenet.org> (aka. Jan Vales <jan@jvales.net>)
3 #  published under MIT-License
4
5 import random
6
7
8 from AbstractCommand import AbstractCommand
9 class CommandShouldITUIt(AbstractCommand):
10     TRIGGER = "should_i_tu_it"
11     CONFIG = {"display_name": "somebot-command", "auto_complete": True,
12               "auto_complete_hint":  "",
13              }
14     USEINFO = CONFIG["auto_complete_desc"] = CONFIG["description"] = "Should I :tu: it?"
15
16     options = ["No",
17                "No?",
18                "Nope!",
19                "Nope! Nope! Nope!",
20                "#### Nope! Nope! Nope!",
21                "#### Noooooo!",
22                "#### Nooooooooo!",
23                "#### Nooooooooooooooooo!",
24                "~~Mayb~~ ...hooow about NO?",
25                "Definitely not!",
26                "#### Definitely not!",
27                "please no?",
28                "#### please, no!",
29                "Did you even need to ask that?",
30                "#### Next question!",
31                "Dont even think about it.",
32                "Hell no!",
33                "Why would you?",
34               ]
35
36
37     def on_POST(self, request, data):
38         request.cmd_respond_text_chan(random.choice(self.options))