diff --git a/betterhelp.json b/betterhelp.json index 26f6067d7afdcc9bb8eea0cdd819d9f452786b6d..a9ea0f6c44c2dfec221c6fa77d497ff30d7f0f25 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 a39bdb7631302d17e713b1031f2ed63884b3683a..8748e3d176042a365e884b4e6948e76eaae3cfe3 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():