mirror of
https://github.com/sigmasternchen/MinervaBot
synced 2025-03-15 07:59:00 +00:00
i hate tweepy
This commit is contained in:
parent
dc3392c265
commit
264e67a5d5
1 changed files with 4 additions and 1 deletions
3
main.py
3
main.py
|
@ -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:
|
||||
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:
|
||||
|
|
Loading…
Reference in a new issue