mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-21 08:51:15 +08:00
Broadcast BotReloginEvent, close #78
This commit is contained in:
parent
9437d1528d
commit
9660b44142
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user