mirror of
https://github.com/sigmasternchen/MinervaBot
synced 2025-03-15 07:59:00 +00:00
...
This commit is contained in:
parent
d4b078d9e4
commit
60aaa1fef4
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -97,7 +97,7 @@ if __name__ == "__main__":
|
||||||
log("unprivileged user @" + dm.author.screen_name + " tried to execute command (dm) \"" + dm.text.replace("\n", "\\n") + "\"\n")
|
log("unprivileged user @" + dm.author.screen_name + " tried to execute command (dm) \"" + dm.text.replace("\n", "\\n") + "\"\n")
|
||||||
|
|
||||||
if not ALLOW_ONLY_DM_COMMANDS:
|
if not ALLOW_ONLY_DM_COMMANDS:
|
||||||
mentions = api.mentions(since_id = lastChange)
|
mentions = api.mentions_timeline(since_id = lastChange)
|
||||||
for mention in mentions:
|
for mention in mentions:
|
||||||
lastChange = mention.id
|
lastChange = mention.id
|
||||||
if len(COMMAND_SOURCE_ACCOUNTS) == 0:
|
if len(COMMAND_SOURCE_ACCOUNTS) == 0:
|
||||||
|
|
Loading…
Reference in a new issue