mirror of
https://github.com/LamGC/ScalaBot.git
synced 2025-07-01 04:47:24 +00:00
fix(bot): 修复 disableBuiltInAbility 逻辑错误的问题.
设置反了, 所以 disableBuiltInAbility == true 就会打开内置命令.
This commit is contained in:
@ -32,7 +32,7 @@ internal class ScalaBot(
|
|||||||
val extensions: Set<Artifact>,
|
val extensions: Set<Artifact>,
|
||||||
disableBuiltInAbility: Boolean
|
disableBuiltInAbility: Boolean
|
||||||
) :
|
) :
|
||||||
AbilityBot(token, name, db, if (disableBuiltInAbility) DefaultToggle() else BareboneToggle(), options) {
|
AbilityBot(token, name, db, if (disableBuiltInAbility) BareboneToggle() else DefaultToggle(), options) {
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
|
Reference in New Issue
Block a user