remove while true statements

This commit is contained in:
deathbybandaid 2019-05-05 13:40:54 -04:00
parent c5fc5222f8
commit 7676930ed7
2 changed files with 2 additions and 2 deletions

View File

@ -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'])

View File

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