From 5a11f08430e44fff8dcd8b510f008f5669538e16 Mon Sep 17 00:00:00 2001 From: Someone Date: Mon, 10 Jan 2022 17:27:25 +0100 Subject: [PATCH] modules/CommandGWGRoll.py --- modules/CommandGWGRoll.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/CommandGWGRoll.py b/modules/CommandGWGRoll.py index 4787af3..10417eb 100644 --- a/modules/CommandGWGRoll.py +++ b/modules/CommandGWGRoll.py @@ -12,9 +12,10 @@ class CommandGWGRoll(AbstractCommand): CONFIG = {"display_name": "somebot-command", "auto_complete": True, "auto_complete_hint": "Roll your GWG points!", } - USEINFO = CONFIG["auto_complete_desc"] = CONFIG["description"] = "Roll your GWG points!" + USEINFO = CONFIG["auto_complete_desc"] = CONFIG["description"] = AbstractCommand.ICON_PUBLIC+"Roll your GWG points!" options = ["Your GWG points: "+str(i/10) for i in range(0, 165, 5)] + def on_POST(self, request, data): - request.cmd_respond_text_chan(random.choice(self.options)) + request.respond_cmd_chan(random.choice(self.options)) -- 2.43.0