Commit 9660b441 authored by Him188's avatar Him188

Broadcast BotReloginEvent, close #78

parent 9437d152
......@@ -94,6 +94,7 @@ abstract class BotImpl<N : BotNetworkHandler> constructor(
}
network.relogin(event.cause)
logger.info("Reconnected successfully")
BotReloginEvent(bot, event.cause).broadcast()
return@subscribeAlways
}?.let {
logger.info("Cannot reconnect")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment