]> git.somenet.org - pub/jan/mattermost-bot.git/blob - modules/CommandHot.py
modules/CommandHot.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 from AbstractCommand import AbstractCommand
10 class CommandHot(AbstractCommand):
11     TRIGGER = "hot"
12     CONFIG = {"display_name": "somebot-command", "auto_complete": True,
13               "auto_complete_hint": "",
14              }
15     USEINFO = CONFIG["auto_complete_desc"] = CONFIG["description"] = "Remind participants of a discussion to cool off a little."
16
17
18     def on_POST(self, request, data):
19         msg = cleandoc("""
20                 :fire::fire::fire::fire::fire::fire:
21                 ##### This discussion seems to have taken an unhealthy trajectory.
22                 **``We would like to remember all participants to stay as objective, nice and cool as possible!``**
23                 :fire::fire::fire::fire::fire::fire:
24             """)
25
26         request.cmd_respond_text_chan(msg)