mirror of
https://github.com/sigmasternchen/MinervaBot
synced 2025-03-15 07:59:00 +00:00
and again
This commit is contained in:
parent
02fe0d893b
commit
066f5254b0
1 changed files with 3 additions and 3 deletions
6
main.py
6
main.py
|
@ -75,7 +75,7 @@ if __name__ == "__main__":
|
||||||
if len(lastChangeT) != 0:
|
if len(lastChangeT) != 0:
|
||||||
lastChangeT = lastChangeT[0].GetId()
|
lastChangeT = lastChangeT[0].GetId()
|
||||||
|
|
||||||
while true:
|
while True:
|
||||||
if ALLOW_COMMANDS:
|
if ALLOW_COMMANDS:
|
||||||
dms = api.direct_messages(since_id = lastChangeDM)
|
dms = api.direct_messages(since_id = lastChangeDM)
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ if __name__ == "__main__":
|
||||||
dm.text
|
dm.text
|
||||||
])
|
])
|
||||||
else:
|
else:
|
||||||
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") + "\"")
|
||||||
|
|
||||||
if not ALLOW_ONLY_DM_COMMANDS:
|
if not ALLOW_ONLY_DM_COMMANDS:
|
||||||
mentions = api.mentions_timeline(since_id = lastChangeT)
|
mentions = api.mentions_timeline(since_id = lastChangeT)
|
||||||
|
@ -114,7 +114,7 @@ if __name__ == "__main__":
|
||||||
mention.text
|
mention.text
|
||||||
])
|
])
|
||||||
else:
|
else:
|
||||||
log("unprivileged user @" + mention.author.screen_name + " tried to execute command \"" + mention.text.replace("\n", "\\n") + "\"\n")
|
log("unprivileged user @" + mention.author.screen_name + " tried to execute command \"" + mention.text.replace("\n", "\\n") + "\"")
|
||||||
|
|
||||||
|
|
||||||
for command in commandsToExecute:
|
for command in commandsToExecute:
|
||||||
|
|
Loading…
Reference in a new issue