Spaces:
Runtime error
Runtime error
Update script.py
Browse files
script.py
CHANGED
@@ -12,10 +12,10 @@ def activate_hausa(command):
|
|
12 |
return "Ok, i'm turning off the parlor light!"
|
13 |
|
14 |
elif ('akan' in command and 'soƙet' in command.split()) or ('akan' in command and 'soketh' in command.split()) or ('akan' in command and 'soket' in command.split()) or ('a kan' in command and 'soketh' in command.split()) or ('a kan' in command and 'soket' in command.split()):
|
15 |
-
requests.get('https://blynk.cloud/external/api/update?token=G8ynpU1qu1pivhBZuJwaI542ijnLAOsv&v2=
|
16 |
return "Ok, i'm turning on the socket!"
|
17 |
elif ('kashi' in command and 'soketh' in command.split()) or ('ka shi' in command and 'soketh' in command.split()) or ('kashi' in command and 'soket' in command.split()) or ('kashi' in command and 'soƙet' in command.split()) or ('ka shi' in command and 'soketh' in command.split()) or ('kashe' in command and 'soketh' in command.spilt()):
|
18 |
-
requests.get('https://blynk.cloud/external/api/update?token=G8ynpU1qu1pivhBZuJwaI542ijnLAOsv&v2=
|
19 |
return "Ok, i'm turning off the socket!"
|
20 |
else:
|
21 |
return "Couldn't quite understand that, try again"
|
|
|
12 |
return "Ok, i'm turning off the parlor light!"
|
13 |
|
14 |
elif ('akan' in command and 'soƙet' in command.split()) or ('akan' in command and 'soketh' in command.split()) or ('akan' in command and 'soket' in command.split()) or ('a kan' in command and 'soketh' in command.split()) or ('a kan' in command and 'soket' in command.split()):
|
15 |
+
requests.get('https://blynk.cloud/external/api/update?token=G8ynpU1qu1pivhBZuJwaI542ijnLAOsv&v2=1')
|
16 |
return "Ok, i'm turning on the socket!"
|
17 |
elif ('kashi' in command and 'soketh' in command.split()) or ('ka shi' in command and 'soketh' in command.split()) or ('kashi' in command and 'soket' in command.split()) or ('kashi' in command and 'soƙet' in command.split()) or ('ka shi' in command and 'soketh' in command.split()) or ('kashe' in command and 'soketh' in command.spilt()):
|
18 |
+
requests.get('https://blynk.cloud/external/api/update?token=G8ynpU1qu1pivhBZuJwaI542ijnLAOsv&v2=0')
|
19 |
return "Ok, i'm turning off the socket!"
|
20 |
else:
|
21 |
return "Couldn't quite understand that, try again"
|