1
0
mirror of http://aero2k.de/t/repos/urlbot-native.git synced 2017-09-06 15:25:38 +02:00

add ignorelist for spammers, remove idle-loop

This commit is contained in:
Thorsten S
2015-12-26 20:43:25 +01:00
parent 00e5f41317
commit 9e313699c6
4 changed files with 53 additions and 13 deletions

View File

@@ -97,17 +97,6 @@ def start(botclass, active=False):
config.runtimeconf_set('start_time', -time.time())
while 1:
try:
# print("hangup: %s" % got_hangup)
if not plugins.event_trigger():
bot.hangup()
time.sleep(EVENTLOOP_DELAY)
except KeyboardInterrupt:
print('')
exit(130)
if '__main__' == __name__:
start(IdleBot)