mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
Logs Patch
This commit is contained in:
parent
9397815149
commit
58d9fd8cfe
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user