mirror of
https://github.com/sigmasternchen/MinervaBot
synced 2025-03-15 07:59:00 +00:00
why isn't there a good doc for this?
This commit is contained in:
parent
541a076e81
commit
faaf146ddf
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -66,12 +66,12 @@ if __name__ == "__main__":
|
|||
lastChange = 0
|
||||
|
||||
lastChange = api.direct_messages(since_id = lastChange)
|
||||
if lastChange.length == 0:
|
||||
if lastChange.rowcount == 0:
|
||||
lastChange = 0
|
||||
else:
|
||||
lastChange = lastChange[0].GetId()
|
||||
lastChange = api.mentions_timeline(since_id = lastChange)
|
||||
if lastChange.length != 0:
|
||||
if lastChange.rowcount != 0:
|
||||
lastChange = lastChange[0].GetId()
|
||||
|
||||
while true:
|
||||
|
|
Loading…
Reference in a new issue