Skip to content

Commit

Permalink
pref: 优化KookBotStartedEvent和KookBotRegisteredEvent的继承性
Browse files Browse the repository at this point in the history
  • Loading branch information
ForteScarlet committed Jun 17, 2024
1 parent d5a44c7 commit dfcac89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ import love.forte.simbot.common.id.UUID
import love.forte.simbot.common.time.Timestamp
import love.forte.simbot.component.kook.bot.KookBot
import love.forte.simbot.component.kook.bot.KookBotManager
import love.forte.simbot.event.BotEvent
import love.forte.simbot.event.BotRegisteredEvent

/**
* 当一个 [KookBot] 在 [KookBotManager] 中被_注册_时。
*
* @author ForteScarlet
*/
public abstract class KookBotRegisteredEvent : KookEvent(), BotEvent {
public abstract class KookBotRegisteredEvent : KookEvent(), BotRegisteredEvent {
override val id: ID = UUID.random()

@OptIn(ExperimentalSimbotAPI::class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ import love.forte.simbot.common.id.ID
import love.forte.simbot.common.id.UUID
import love.forte.simbot.common.time.Timestamp
import love.forte.simbot.component.kook.bot.KookBot
import love.forte.simbot.event.BotEvent
import love.forte.simbot.event.BotStartedEvent

/**
* [KookBot] 执行 [start][KookBot.start] 之后推送的事件。
*
* @author ForteScarlet
*/
public abstract class KookBotStartedEvent : KookEvent(), BotEvent {
public abstract class KookBotStartedEvent : KookEvent(), BotStartedEvent {
override val id: ID = UUID.random()

@OptIn(ExperimentalSimbotAPI::class)
Expand Down

0 comments on commit dfcac89

Please sign in to comment.