Skip to content
Snippets Groups Projects
Commit 3923bd03 authored by Frederic Aust's avatar Frederic Aust
Browse files

Add- und savequote ergänzt

parent 35995ec3
No related branches found
No related tags found
No related merge requests found
......@@ -154,7 +154,7 @@ def handle_action(timestamp, source, groupID, message, attachments):
links( receiver, groupInfo)
elif action in FUN_DICT:
send(FUN_DICT[action], receiver)
elif action == "savequote" and (groupInfo is not None and action in groupInfo["COMMANDS"]):
elif (action == "savequote" or action == "addquote") and (groupInfo is not None and action in groupInfo["COMMANDS"]):
save_quote(receiver, " ".join(str(x) for x in msg_splitted[1:]), groupInfo)
elif action == "randomquote" and (groupInfo is not None and action in groupInfo["COMMANDS"]):
random_quote(receiver, groupInfo)
......@@ -497,4 +497,5 @@ if __name__ == "__main__":
schedule_thread.start()
print("schedule_thread started")
loop.run()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment