Compare commits

...

2 Commits

@ -72,19 +72,19 @@ def handle_messages(**payload):
if is_command != (None, None): if is_command != (None, None):
if is_command[1].startswith("say"): if is_command[1].startswith("say"):
response = f"{is_command[1]}" response = f"{is_command[1]}"
if is_command[1].startswith("furry"): elif is_command[1].startswith("furry"):
response = f"{is_command[1]}" response = f"{is_command[1]}"
if is_command[1].startswith("download"): elif is_command[1].startswith("download"):
response = "you wouldn't download a car" response = "you wouldn't download a car"
if "arke" in is_command[1]: elif "arke" in is_command[1]:
response = [] response = []
with open("/shared/state.log", "r") as json_File: with open("/shared/state.log", "r") as json_File:
for line in json_File: for line in json_File:
response.append(json.loads(line)) response.append(json.loads(line))
if "pence" in is_command[1]: elif "pence" in is_command[1]:
response = "mother wouldn't want me to say that" response = "mother wouldn't want me to say that"
else: else:
response = f"{is_command}" response = "that's not my job, bithc"
webclient = payload['web_client'] webclient = payload['web_client']
webclient.chat_postMessage( webclient.chat_postMessage(

Loading…
Cancel
Save