mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 15:09:54 -05:00
Stop processing at close
This commit is contained in:
parent
e54e3666dd
commit
d589161481
@ -81,7 +81,8 @@ def trigger_channel_list_initial(bot, trigger):
|
||||
if "*" in bot.memory['SpiceBot_Channels']['channels']:
|
||||
del bot.memory['SpiceBot_Channels']['channels']["*"]
|
||||
|
||||
while 'SpiceBot_Channels' in bot.memory:
|
||||
while True:
|
||||
try:
|
||||
time.sleep(1800)
|
||||
oldlist = list(bot.memory['SpiceBot_Channels']['channels'].keys())
|
||||
bot.write(['LIST'])
|
||||
@ -102,6 +103,8 @@ def trigger_channel_list_initial(bot, trigger):
|
||||
|
||||
if "*" in bot.memory['SpiceBot_Channels']['channels']:
|
||||
del bot.memory['SpiceBot_Channels']['channels']["*"]
|
||||
except KeyError:
|
||||
return
|
||||
|
||||
|
||||
@sopel.module.event('2001')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user