You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: main.py
+11-23Lines changed: 11 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,12 @@
4
4
# friend honked my car? he isnt logged on at all possibly because vehicle list is set to 0 which brings the first in the list?
5
5
# Implement a function to consistently refresh cache.json so we have up to date creds?
6
6
# Sometimes Vehicle error when sending command; teslapy.VehicleError: Meta slave not woken up within 60 seconds; issue is bot will not read anythiing else during those 60s
7
+
#freezes on t! test if not loged in, maybe waiting for timeout
7
8
8
9
#TODO: QOL LIST
9
10
#maybe t! email with no argument returns what email you have it set to for ease of access?
10
11
12
+
11
13
withopen('tokens.json', 'r') asopenfile:
12
14
tokens=json.load(openfile)
13
15
@@ -20,6 +22,12 @@ async def on_ready(self):
20
22
print('Logged on as {0}!'.format(self.user))
21
23
22
24
asyncdefon_message(self, message):
25
+
26
+
defgetEmail(passid):
27
+
withopen('emails.json', 'r') asopenfile:
28
+
emailDictionary=json.load(openfile)
29
+
returnemailDictionary[str(passid)]
30
+
23
31
print('Message from {0.author}: {0.content}'.format(message))
0 commit comments