Change sequntial ifs to elifs.

master
jowj 4 years ago
parent afc1554914
commit 6550bb152e

@ -72,16 +72,16 @@ def handle_messages(**payload):
if is_command != (None, None):
if is_command[1].startswith("say"):
response = f"{is_command[1]}"
if is_command[1].startswith("furry"):
elif is_command[1].startswith("furry"):
response = f"{is_command[1]}"
if is_command[1].startswith("download"):
elif is_command[1].startswith("download"):
response = "you wouldn't download a car"
if "arke" in is_command[1]:
elif "arke" in is_command[1]:
response = []
with open("/shared/state.log", "r") as json_File:
for line in json_File:
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"
else:
response = "that's not my job, bithc"

Loading…
Cancel
Save