]> git.somenet.org - pub/jan/mattermost-bot.git/blob - modules/CommandFAQ.py
modules/CommandInskription.py
[pub/jan/mattermost-bot.git] / modules / CommandFAQ.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
5 from inspect import cleandoc
6
7
8 # pylint: disable=wrong-import-position
9 from AbstractCommand import AbstractCommand
10 class CommandFAQ(AbstractCommand):
11     TRIGGER = "faq"
12     CONFIG = {"display_name": "somebot-command", "auto_complete": True,
13               "auto_complete_hint": "",
14              }
15     USEINFO = CONFIG["auto_complete_desc"] = CONFIG["description"] = "Link fsinf-faq."
16
17
18     def on_POST(self, request, data):
19         msg = cleandoc("""``AUTODELETE-DAY``
20             Kennst du schon ...
21             ### [... die FAQs der FSInf?](https://www.fsinf.at/faq)
22             Vielleicht findest du ja dort eine passende Antwort zu deiner Frage
23             """)
24
25         request.cmd_respond_text_chan(msg)