Logs Patch

This commit is contained in:
deathbybandaid 2019-05-05 11:50:00 -04:00
parent 9397815149
commit 58d9fd8cfe
2 changed files with 3 additions and 2 deletions

View File

@ -47,6 +47,9 @@ 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))
if 'SpiceBot_Logs_queue' not in bot.memory:
bot.memory['SpiceBot_Logs_queue'] = []
while True:
if len(bot.memory['SpiceBot_Logs_queue']):
bot.say(str(bot.memory['SpiceBot_Logs_queue'][0]), channel)

View File

@ -253,8 +253,6 @@ def channel_list_current(bot):
def spicebot_reload(bot, log_from='service_manip', quitmessage='Recieved QUIT'):
# service_manip(bot, bot.nick, 'restart', log_from)
# bot.reload_plugins()
# bot.write(('NOTICE', bot.nick), '001 Foo :Hello')
bot.restart(quitmessage)