From df45b960552a3a990c4db84a3c7beb3ff441df04 Mon Sep 17 00:00:00 2001 From: Someone Date: Mon, 10 Jan 2022 17:35:44 +0100 Subject: [PATCH] modules/CommandOrder.py --- modules/CommandOrder.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/CommandOrder.py b/modules/CommandOrder.py index 8da2baf..bf8a78a 100644 --- a/modules/CommandOrder.py +++ b/modules/CommandOrder.py @@ -12,18 +12,18 @@ class CommandOrder(AbstractCommand): CONFIG = {"display_name": "somebot-command", "auto_complete": True, "auto_complete_hint": "['oida'|'oida minusf'|'--video']", } - USEINFO = CONFIG["auto_complete_desc"] = CONFIG["description"] = "Call for order." + USEINFO = CONFIG["auto_complete_desc"] = CONFIG["description"] = AbstractCommand.ICON_PUBLIC+"Call for order." def on_POST(self, request, data): if data["text"] == "": - request.cmd_respond_text_chan("## **``ORDER! OOORDER!``**\n# :boom::hammer:\nRespect this channel's purpose!") + request.respond_cmd_chan("## **``ORDER! OOORDER!``**\n# :boom::hammer:\nRespect this channel's purpose!") elif data["text"] == "oida": - request.cmd_respond_text_chan("## **``ORDER! OIDA!``**\n# :boom::hammer: :boom::hammer: :boom::hammer:\nRespect this channel's purpose!") + request.respond_cmd_chan("## **``ORDER! OIDA!``**\n# :boom::hammer: :boom::hammer: :boom::hammer:\nRespect this channel's purpose!") elif data["text"] == "oida minusf": - request.cmd_respond_text_chan(cleandoc(""" + request.respond_cmd_chan(cleandoc(""" ## :warning::point_down::point_down::point_down::point_down::point_down::point_down::point_down::point_down::point_down::point_down::point_down::point_down::point_down: ## :point_right: **``ORDER! OIDA!``** # :point_right: :boom::hammer: :boom::hammer: :boom::hammer: :boom::hammer: :boom::hammer: @@ -32,7 +32,7 @@ class CommandOrder(AbstractCommand): """)) elif data["text"] == "--video": - request.cmd_respond_text_chan("## **``ORDER! OOORDER!``**\nhttps://youtu.be/VYycQTm2HrM") + request.respond_cmd_chan("## **``ORDER! OOORDER!``**\nhttps://youtu.be/VYycQTm2HrM") else: - request.cmd_respond_text_temp("Permitted agruments: nothing, `oida`, `oida minusf`, `--video` :)") + request.respond_cmd_err("``/"+self.TRIGGER+"`` Permitted agruments: nothing, `oida`, `oida minusf`, `--video` :)") -- 2.43.0