and again

This commit is contained in:
overflowerror 2015-03-23 13:51:59 +01:00
parent 02fe0d893b
commit 066f5254b0

View file

@ -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: