mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
Logging Channel
This commit is contained in:
parent
2c125c7879
commit
a27d2dfd2f
@ -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')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user