From 2bec032e68eab34483ab9c92a9a412ff13cf967a Mon Sep 17 00:00:00 2001 From: Someone Date: Mon, 10 Jan 2022 17:27:25 +0100 Subject: [PATCH] modules/CommandEnglish.py --- modules/CommandEnglish.py | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 modules/CommandEnglish.py diff --git a/modules/CommandEnglish.py b/modules/CommandEnglish.py deleted file mode 100644 index 592a949..0000000 --- a/modules/CommandEnglish.py +++ /dev/null @@ -1,29 +0,0 @@ -# Mattermost Bot. -# Copyright (c) 2016-2022 by Someone (aka. Jan Vales ) -# published under MIT-License - -from inspect import cleandoc - - -# pylint: disable=wrong-import-position -from AbstractCommand import AbstractCommand -class CommandEnglish(AbstractCommand): - TRIGGER = "english" - CONFIG = {"display_name": "somebot-command", "auto_complete": True, - "auto_complete_hint": "['oida'|'oida minusf']", - } - USEINFO = CONFIG["auto_complete_desc"] = CONFIG["description"] = "Suggest to continue in (d)english." - - - def on_POST(self, request, data): - if data["text"] == "oida": - request.cmd_respond_text_chan("## ``ENGLISCH! OIDA!``") - - elif data["text"] == "oida minusf": - request.cmd_respond_text_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: **``RED' (D)ENGLISCH! OIDA!``** - ## :warning::point_up::point_up_2::point_up::point_up_2::point_up::point_up_2::point_up::point_up_2::point_up::point_up_2::point_up::point_up_2::point_up: - """)) - else: - request.cmd_respond_text_chan("## **``ORDER! OOORDER!``**\n# :boom::hammer:\nRespect this channel's purpose!") -- 2.43.0