mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-12 06:29:54 -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:
|
if channel not in bot.channels.keys() and bot.config.SpiceBot_Channels.operadmin:
|
||||||
bot.write(('SAJOIN', bot.nick, channel))
|
bot.write(('SAJOIN', bot.nick, channel))
|
||||||
|
|
||||||
|
if 'SpiceBot_Logs_queue' not in bot.memory:
|
||||||
|
bot.memory['SpiceBot_Logs_queue'] = []
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
if len(bot.memory['SpiceBot_Logs_queue']):
|
if len(bot.memory['SpiceBot_Logs_queue']):
|
||||||
bot.say(str(bot.memory['SpiceBot_Logs_queue'][0]), channel)
|
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'):
|
def spicebot_reload(bot, log_from='service_manip', quitmessage='Recieved QUIT'):
|
||||||
# service_manip(bot, bot.nick, 'restart', log_from)
|
# service_manip(bot, bot.nick, 'restart', log_from)
|
||||||
# bot.reload_plugins()
|
|
||||||
# bot.write(('NOTICE', bot.nick), '001 Foo :Hello')
|
|
||||||
bot.restart(quitmessage)
|
bot.restart(quitmessage)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user