From b031319bb40da20df0635645d3fa27f68d71d5b1 Mon Sep 17 00:00:00 2001 From: Frederic Aust <frederic.aust@stud.hs-bochum.de> Date: Wed, 23 Mar 2022 19:12:31 +0100 Subject: [PATCH] =?UTF-8?q?Signalbot=20Changelog:->=20Man=20kann=20nun=20.?= =?UTF-8?q?list=20neben=20.help=20nutzen=20\=20->=20Die=20Programmiergrupp?= =?UTF-8?q?e=20ist=20in=20.links=20zu=20finden=20->=20Secret=20Interaction?= =?UTF-8?q?s=20=F0=9F=91=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- betterhelp.json | 3 ++- signalbot.py | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/betterhelp.json b/betterhelp.json index 26f6067..a9ea0f6 100644 --- a/betterhelp.json +++ b/betterhelp.json @@ -18,7 +18,8 @@ "Static Texts": [ { "Names": [ - ".help" + ".help", + ".list" ], "Description": "Get a list of all available commands. Type .help <command> for more information.", "_Func": "echo" diff --git a/signalbot.py b/signalbot.py index a39bdb7..8748e3d 100755 --- a/signalbot.py +++ b/signalbot.py @@ -147,7 +147,7 @@ def handle_action(timestamp, source, groupID, message, attachments): action = msg_splitted[0].lower() if len(action) == 0: return - if action == "help": + if action in ["help", "list"]: help_func(receiver, " ".join(str(x) for x in msg_splitted[1:]).strip(), groupInfo) elif action == "remusfeinste" and (groupInfo is None or action in groupInfo["COMMANDS"]): remus_feinste(receiver) @@ -505,8 +505,8 @@ def init_schedule_jobs(): schedule.every().day.at("09:00").do(run_threaded, event_reminder.check_for_events) schedule.every().tuesday.at("10:00").do(run_threaded, gg_remind_schichten) schedule.every().day.at("11:00").do(run_threaded, gg_remind_stundenzettel) - schedule.every(6).hours.do(run_threaded,today.update()) - # schedule.every(10).seconds.do(run_threaded, birthday_reminder.check_for_birthdays) + schedule.every().day.at("04:00").do(run_threaded,today.update()) + # schedule.every(10).seconds.do(run_threaded, birthday_reminder.check_for_birthdays) def gg_remind_schichten(): -- GitLab