Skip to content

Commit

Permalink
what is the meaning of life
Browse files Browse the repository at this point in the history
  • Loading branch information
super-nimbus committed May 3, 2020
1 parent e9b3e87 commit e9a9647
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion activetwitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
if(newmsgid != lastmsgid):
#TODO SEND SMS WITH:
#This is a JSON with all the messages since the lastmsg
newMessages = api.GetDirectMessages(return_json=True, since_id = lastmsgid)
newMessages = api.GetDirectMessages(return_json=True, since_id=lastmsgid)

recipient = user['_id']
print(recipient)
Expand Down
5 changes: 5 additions & 0 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,13 @@ def incoming_sms():
message = body.split(' ', 1)[1]
api.PostUpdate(message)
resp.message("Tweet Sent")

elif cmd == "currentmode":
user = sch.User.objects.get({'_id': from_})
mode = user.active

resp.message("Currently set on {}".format(mode))

else:
resp.message("Invalid Command")

Expand Down

0 comments on commit e9a9647

Please sign in to comment.