mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-11 22:20:58 -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:
|
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))
|
||||||
|
|
||||||
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]))
|
bot.say(str(bot.memory['SpiceBot_Logs_queue'][0]), channel)
|
||||||
del bot.memory['SpiceBot_Logs_queue'][0]
|
del bot.memory['SpiceBot_Logs_queue'][0]
|
||||||
|
|
||||||
|
|
||||||
@sopel.module.nickname_commands('logs')
|
@sopel.module.nickname_commands('logs')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user