mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -05:00
tweak
This commit is contained in:
parent
48e9228b2a
commit
f81e3560dd
@ -110,7 +110,7 @@ def trigger_channel_list_recurring(bot, trigger):
|
|||||||
while bot.memory['SpiceBot_Channels']['ProcessLock']:
|
while bot.memory['SpiceBot_Channels']['ProcessLock']:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
newlist = [item.lower() for item in oldlist if item.lower() not in bot.memory['SpiceBot_Channels']['channels']]
|
newlist = [item.lower() for item in oldlist if item.lower() not in list(bot.memory['SpiceBot_Channels']['channels'.keys()])]
|
||||||
if "*" in newlist:
|
if "*" in newlist:
|
||||||
newlist.remove("*")
|
newlist.remove("*")
|
||||||
if len(newlist) and bot.config.SpiceBot_Channels.announcenew:
|
if len(newlist) and bot.config.SpiceBot_Channels.announcenew:
|
||||||
@ -133,7 +133,7 @@ def bot_part_empty(bot):
|
|||||||
ignorepartlist = []
|
ignorepartlist = []
|
||||||
if bot.config.SpiceBot_Logs.logging_channel:
|
if bot.config.SpiceBot_Logs.logging_channel:
|
||||||
ignorepartlist.append(bot.config.SpiceBot_Logs.logging_channel)
|
ignorepartlist.append(bot.config.SpiceBot_Logs.logging_channel)
|
||||||
while True:
|
|
||||||
for channel in bot.channels.keys():
|
for channel in bot.channels.keys():
|
||||||
if len(bot.channels[channel].privileges.keys()) == 1 and channel not in ignorepartlist:
|
if len(bot.channels[channel].privileges.keys()) == 1 and channel not in ignorepartlist:
|
||||||
bot.part(channel, "Leaving Empty Channel")
|
bot.part(channel, "Leaving Empty Channel")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user