feat(bot): 增加 accountId 属性.

增加该属性有利于其他组件对机器人账户进行标记.
This commit is contained in:
LamGC 2022-04-10 16:28:20 +08:00
parent 9cdf10ccc2
commit 29bd12a8dd
Signed by: LamGC
GPG Key ID: 6C5AE2A913941E1D

View File

@ -30,6 +30,7 @@ internal class ScalaBot(
extensionFinders: Set<ExtensionPackageFinder>, extensionFinders: Set<ExtensionPackageFinder>,
botConfig: BotConfig, botConfig: BotConfig,
private val creatorId: Long = botConfig.account.creatorId, private val creatorId: Long = botConfig.account.creatorId,
val accountId: Long = botConfig.account.id,
val extensions: Set<Artifact> = botConfig.extensions val extensions: Set<Artifact> = botConfig.extensions
) : ) :
AbilityBot( AbilityBot(