mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
better reconnect logic
This commit is contained in:
parent
47018cdfce
commit
b88ccbf9cb
@ -11,4 +11,5 @@ from sopel_modules.SpiceBot.Events import botevents
|
||||
@sopel.module.rule('.*')
|
||||
def bot_startup_welcome(bot, trigger):
|
||||
botevents.SpiceBot_Events["RPL_WELCOME_Count"] += 1
|
||||
botevents.trigger(bot, botevents.BOT_RECONNECTED, "Bot Connected to IRC")
|
||||
if botevents.SpiceBot_Events["RPL_WELCOME_Count"] > 1:
|
||||
botevents.trigger(bot, botevents.BOT_RECONNECTED, "Bot ReConnected to IRC")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user