mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-12 22:49:53 -05:00
string
This commit is contained in:
parent
1a9f964612
commit
ac82a2ffab
@ -56,9 +56,6 @@ def unkickable_bot(bot, trigger):
|
|||||||
@sopel.module.rule('.*')
|
@sopel.module.rule('.*')
|
||||||
def trigger_channel_list_initial(bot, trigger):
|
def trigger_channel_list_initial(bot, trigger):
|
||||||
|
|
||||||
# Unkickable
|
|
||||||
bot.write(('SAMODE', bot.nick, '+q'))
|
|
||||||
|
|
||||||
bot_part_empty(bot)
|
bot_part_empty(bot)
|
||||||
|
|
||||||
bot.write(['LIST'])
|
bot.write(['LIST'])
|
||||||
@ -104,7 +101,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 list(bot.memory['SpiceBot_Channels']['channels'.keys()])]
|
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:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user