]> git.somenet.org - pub/jan/mattermost-bot.git/blob - modules/CommandHot.py
modules/DialogManagedGuess.py
[pub/jan/mattermost-bot.git] / modules / CommandHot.py
1 # Mattermost Bot module.
2 #  Copyright (c) 2016-2022 by Someone <someone@somenet.org> (aka. Jan Vales <jan@jvales.net>)
3 #  published under MIT-License
4 # Idea by @x5468656f
5
6 from inspect import cleandoc
7
8
9 # pylint: disable=wrong-import-position
10 from AbstractCommand import AbstractCommand
11 class CommandHot(AbstractCommand):
12     TRIGGER = "hot"
13     CONFIG = {"display_name": "somebot-command", "auto_complete": True,
14               "auto_complete_hint": "",
15              }
16     USEINFO = CONFIG["auto_complete_desc"] = CONFIG["description"] = AbstractCommand.ICON_PUBLIC+"Remind participants of a discussion to cool off a little."
17
18
19     def on_POST(self, request, data):
20         msg = cleandoc("""
21                 :fire::fire::fire::fire::fire::fire:
22                 ##### This discussion seems to have taken an unhealthy trajectory.
23                 **``We would like to remember all participants to stay as objective, nice and cool as possible!``**
24                 :fire::fire::fire::fire::fire::fire:
25             """)
26
27         request.respond_cmd_chan(msg)