From 28809e5df050550304b703cb1f01ff4a89698b53 Mon Sep 17 00:00:00 2001 From: Someone Date: Wed, 8 Dec 2021 19:38:38 +0100 Subject: [PATCH] [somebot] /hot --- modules/CommandHot.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 modules/CommandHot.py diff --git a/modules/CommandHot.py b/modules/CommandHot.py new file mode 100644 index 0000000..39acfc0 --- /dev/null +++ b/modules/CommandHot.py @@ -0,0 +1,26 @@ +# Mattermost Bot module. +# Copyright (c) 2016-2021 by Someone (aka. Jan Vales ) +# published under MIT-License +# Idea by @x5468656f + +from inspect import cleandoc + + +from AbstractCommand import AbstractCommand +class CommandHot(AbstractCommand): + TRIGGER = "hot" + CONFIG = {"display_name": "somebot-command", "auto_complete": True, + "auto_complete_hint": "", + } + USEINFO = CONFIG["auto_complete_desc"] = CONFIG["description"] = "Remind participants of a discussion to cool off a little." + + + def on_POST(self, request, data): + msg = cleandoc(""" + :fire::fire::fire::fire::fire::fire: + ##### This discussion seems to have taken an unhealthy trajectory. + **``We would like to remember all participants to stay as objective, nice and cool as possible!``** + :fire::fire::fire::fire::fire::fire: + """) + + request.cmd_respond_text_chan(msg) -- 2.43.0