mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
remove while true statements
This commit is contained in:
parent
c5fc5222f8
commit
7676930ed7
@ -88,7 +88,7 @@ def trigger_channel_list_initial(bot, trigger):
|
||||
if "*" in bot.memory['SpiceBot_Channels']['channels']:
|
||||
del bot.memory['SpiceBot_Channels']['channels']["*"]
|
||||
|
||||
while True:
|
||||
while 'SpiceBot_Channels' in bot.memory:
|
||||
time.sleep(1800)
|
||||
oldlist = list(bot.memory['SpiceBot_Channels']['channels'].keys())
|
||||
bot.write(['LIST'])
|
||||
|
||||
@ -50,7 +50,7 @@ def join_log_channel(bot, trigger):
|
||||
if 'SpiceBot_Logs_queue' not in bot.memory:
|
||||
bot.memory['SpiceBot_Logs_queue'] = []
|
||||
|
||||
while True:
|
||||
while 'SpiceBot_Logs_queue' in bot.memory:
|
||||
if len(bot.memory['SpiceBot_Logs_queue']):
|
||||
bot.say(str(bot.memory['SpiceBot_Logs_queue'][0]), channel)
|
||||
del bot.memory['SpiceBot_Logs_queue'][0]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user