2 # Copyright (c) 2016-2021 by Someone <someone@somenet.org> (aka. Jan Vales <jan@jvales.net>)
3 # published under MIT-License
5 from inspect import cleandoc
8 from AbstractCommand import AbstractCommand
9 class CommandEnglish(AbstractCommand):
11 CONFIG = {"display_name": "somebot-command", "auto_complete": True,
12 "auto_complete_hint": "['oida'|'oida minusf']",
14 USEINFO = CONFIG["auto_complete_desc"] = CONFIG["description"] = "Suggest to continue in (d)english."
17 def on_POST(self, request, data):
18 if data["text"] == "oida":
19 request.cmd_respond_text_chan("## ``ENGLISCH! OIDA!``")
21 elif data["text"] == "oida minusf":
22 request.cmd_respond_text_chan(cleandoc("""
23 ## :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:
24 ## :point_right: **``RED' (D)ENGLISCH! OIDA!``**
25 ## :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:
28 request.cmd_respond_text_chan("## **``ORDER! OOORDER!``**\n# :boom::hammer:\nRespect this channel's purpose!")