chore: bump rob
This commit is contained in:
3 files changed
+7
-3
No files matched your search
@@ -1,6 +1,6 @@
|
||||
[versions]
|
||||
kotlinVersion = "2.0.20"
|
||||
ronebotVersion = "2.1.8"
|
||||
ronebotVersion = "2.1.10"
|
||||
shadowVersion = "8.3.0"
|
||||
okhttpVersion = "5.0.0-alpha.14"
|
||||
exposedVersion = "0.53.0"
|
||||
|
||||
@@ -34,6 +34,7 @@ import cn.rtast.fancybot.util.file.NiuziBankManager
|
||||
import cn.rtast.fancybot.util.file.NiuziManager
|
||||
import cn.rtast.fancybot.util.file.RCONManager
|
||||
import cn.rtast.fancybot.util.item.ItemManager
|
||||
import cn.rtast.rob.util.PermissionCommand
|
||||
import com.google.gson.Gson
|
||||
import com.google.gson.GsonBuilder
|
||||
import java.time.Instant
|
||||
@@ -133,4 +134,6 @@ val commands = listOf(
|
||||
TodayEatCommand(), TodayDrinkCommand(), MCLoginCommand(), RCONCommand(),
|
||||
GravatarCommand(), PastebinCommand(), ShuffleEchoCommand(), TodayDontEatCommand(),
|
||||
TodayDontDrinkCommand(), MCBotCommand(), HTTPCatCommand(), HTTPDogCommand()
|
||||
)
|
||||
)
|
||||
|
||||
val permissionCommands = listOf<PermissionCommand>()
|
||||
@@ -28,8 +28,9 @@ suspend fun OneBotListener.getUserName(action: OneBotAction, groupId: Long, user
|
||||
return info.card ?: info.nickname
|
||||
}
|
||||
|
||||
fun initCommand() {
|
||||
suspend fun initCommand() {
|
||||
commands.forEach { ROneBotFactory.commandManager.register(it) }
|
||||
permissionCommands.forEach { ROneBotFactory.commandManager.register(it) }
|
||||
}
|
||||
|
||||
fun initFilesDir() {
|
||||
|
||||
Reference in New Issue
Block a user