From aab5ce44833ecd032478f57b5f43e4e8f27663fb Mon Sep 17 00:00:00 2001 From: Someone Date: Mon, 10 Jan 2022 16:20:16 +0100 Subject: [PATCH] modules/CommandToss.py --- modules/CommandToss.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/CommandToss.py b/modules/CommandToss.py index e747db8..b5660d7 100644 --- a/modules/CommandToss.py +++ b/modules/CommandToss.py @@ -5,15 +5,15 @@ import requests +# pylint: disable=wrong-import-position from AbstractCommand import AbstractCommand class CommandToss(AbstractCommand): TRIGGER = "toss" CONFIG = {"display_name": "somebot-command", "auto_complete": True, "auto_complete_hint": "", } - USEINFO = CONFIG["auto_complete_desc"] = CONFIG["description"] = "Use TOSS." + USEINFO = CONFIG["auto_complete_desc"] = CONFIG["description"] = AbstractCommand.ICON_PUBLIC+"Use toss.fsinf.at" def on_POST(self, request, data): - msg = "#### Let me :toss: that for you :)\n:arrow_right: https://toss.fsinf.at/?q="+requests.utils.quote(data["text"]) - request.cmd_respond_text_chan(msg) + request.respond_cmd_chan("#### Let me :toss: that for you :)\n:arrow_right: https://toss.fsinf.at/?q="+requests.utils.quote(data["text"])) -- 2.43.0