From d5eefec043667e13d6491a1148c8cfdc7d967523 Mon Sep 17 00:00:00 2001 From: Someone Date: Mon, 10 Jan 2022 17:00:59 +0100 Subject: [PATCH] modules/CommandRollDice.py --- modules/CommandRollDice.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/CommandRollDice.py b/modules/CommandRollDice.py index e20d08e..31216b8 100644 --- a/modules/CommandRollDice.py +++ b/modules/CommandRollDice.py @@ -13,7 +13,7 @@ class CommandRollDice(AbstractCommand): CONFIG = {"display_name": "somebot-command", "auto_complete": True, "auto_complete_hint": "[n or ndm]", } - USEINFO = CONFIG["auto_complete_desc"] = CONFIG["description"] = "Roll dice n [n] or n dices m times [ndm]." + USEINFO = CONFIG["auto_complete_desc"] = CONFIG["description"] = AbstractCommand.ICON_PUBLIC+"Roll dice n [n] or n dices m times [ndm]." def on_POST(self, request, data): @@ -25,7 +25,7 @@ class CommandRollDice(AbstractCommand): msg = msg + str(randint(1, int(re.findall(r"\d+", data["text"])[1]))) + ", " msg = msg[:-2] else: - request.cmd_respond_text_temp("Zulässige Parameter sind: 'n' oder 'ndm' wobei n [1-9] und m [1-100] Zahlen sind.") + request.respond_cmd_temp("Zulässige Parameter sind: 'n' oder 'ndm' wobei n [1-9] und m [1-100] Zahlen sind.") return - request.cmd_respond_text_chan(msg) + request.respond_cmd_chan(msg) -- 2.43.0