i hate tweepy

This commit is contained in:
overflowerror 2015-03-23 14:14:24 +01:00
parent dc3392c265
commit 264e67a5d5

View file

@ -99,7 +99,10 @@ if __name__ == "__main__":
log("unprivileged user @" + dm.author.screen_name + " tried to execute command (dm) \"" + dm.text.replace("\n", "\\n") + "\"")
if not ALLOW_ONLY_DM_COMMANDS:
mentions = api.mentions_timeline(since_id = lastChangeT)
if lastChangeT > 0:
mentions = api.mentions_timeline(since_id = lastChangeT)
else:
mentions = api.mentions_timeline()
for mention in mentions:
lastChangeT = mention.id
if len(COMMAND_SOURCE_ACCOUNTS) == 0: