1 # Mattermost Bot module.
2 # Copyright (c) 2016-2022 by Someone <someone@somenet.org> (aka. Jan Vales <jan@jvales.net>)
3 # published under MIT-License
8 # pylint: disable=wrong-import-position
9 from AbstractCommand import AbstractCommand
10 class CommandGWGRoll(AbstractCommand):
12 CONFIG = {"display_name": "somebot-command", "auto_complete": True,
13 "auto_complete_hint": "Roll your GWG points!",
15 USEINFO = CONFIG["auto_complete_desc"] = CONFIG["description"] = AbstractCommand.ICON_PUBLIC+"Roll your GWG points!"
17 options = ["Your GWG points: "+str(i/10) for i in range(0, 165, 5)]
20 def on_POST(self, request, data):
21 request.respond_cmd_chan(random.choice(self.options))