feat: add command execute record in db

This commit is contained in:
2024-10-02 21:02:05 +08:00
parent 767bd7c0f3
commit 57885473bd
31 files changed
+169 -61

No files matched your search

@@ -0,0 +1,14 @@
/*
* Copyright © 2024 RTAkland
* Author: RTAkland
* Date: 2024/10/2
*/
package cn.rtast.fancybot.enums
enum class CommandAction(val action: String) {
SendMail("发送邮件"), Echo("使用Echo"), GenQRCode("生成二维码"),
Status("获取状态"), Compiler("执行语言代码"), AntiRevoke("防撤回"),
Wiki("查询Wiki"), AI("问AI")
}
@@ -0,0 +1,24 @@
/*
* Copyright © 2024 RTAkland
* Author: RTAkland
* Date: 2024/9/5
*/
package cn.rtast.fancybot.enums
enum class CountryList(val chineseName: String) {
China("中国"), UnitedStates("美国"), Russia("俄罗斯"),
Germany("德国"), France("法国"), UnitedKingdom("英国"),
Japan("日本"), Brazil("巴西"), Canada("加拿大"),
Australia("澳大利亚"), India("印度"), Italy("意大利"),
Spain("西班牙"), SouthKorea("韩国"), Mexico("墨西哥"),
Indonesia("印度尼西亚"), Turkey("土耳其"), SouthAfrica("南非"),
Argentina("阿根廷"), Netherlands("荷兰");
companion object {
fun getRandomCountry(): CountryList {
return entries.random()
}
}
}
@@ -0,0 +1,12 @@
/*
* Copyright © 2024 RTAkland
* Author: RTAkland
* Date: 2024/9/15
*/
package cn.rtast.fancybot.enums
enum class GPTUserRole {
user, system, assistant
}
@@ -0,0 +1,12 @@
/*
* Copyright © 2024 RTAkland
* Author: RTAkland
* Date: 2024/9/14
*/
package cn.rtast.fancybot.enums
enum class ImageType(val typeName: String) {
PNG("png"), JPG("jpg")
}
@@ -0,0 +1,12 @@
/*
* Copyright © 2024 RTAkland
* Author: RTAkland
* Date: 2024/8/30
*/
package cn.rtast.fancybot.enums
enum class WSType {
Client, Server
}