feat(database): 更改数据库命名方式.

由于 BotToken 可以更换, 所以旧版命名方式将会有迁移的问题, 故更改为通过 Bot AccountId 来命名数据库.

CLOSED #3
This commit is contained in:
2022-03-20 11:56:38 +08:00
parent 0748afaff5
commit 19162dcaef
2 changed files with 175 additions and 8 deletions

View File

@ -112,7 +112,7 @@ internal class Launcher : AutoCloseable {
)
val bot = ScalaBot(
BotDBMaker.getBotMaker(account),
BotDBMaker.getBotDbInstance(account),
botOption,
extensionPackageFinders,
botConfig