Logging Channel

This commit is contained in:
deathbybandaid 2019-05-04 17:21:17 -04:00
parent 2c125c7879
commit a27d2dfd2f

View File

@ -40,10 +40,10 @@ def join_log_channel(bot, trigger):
if channel not in bot.channels.keys() and bot.config.SpiceBot_Channels.operadmin:
bot.write(('SAJOIN', bot.nick, channel))
while True:
if len(bot.memory['SpiceBot_Logs_queue']):
bot.say(str(bot.memory['SpiceBot_Logs_queue'][0]))
del bot.memory['SpiceBot_Logs_queue'][0]
while True:
if len(bot.memory['SpiceBot_Logs_queue']):
bot.say(str(bot.memory['SpiceBot_Logs_queue'][0]), channel)
del bot.memory['SpiceBot_Logs_queue'][0]
@sopel.module.nickname_commands('logs')