1. `USER_AUTHORIZATION:MTA5OTg5N***uIfytxUgJfmaXUBHVI` 主动发送消息的discord用户的授权密钥(多个请以,分隔) 2. `BOT_TOKEN:MTE5OTk2xxxxxxxxxxxxxxrwUrUWNbG63w` 监听消息的Bot-Token 3. `GUILD_ID:119xxxxxxxx796` 所有Bot所在的服务器ID 4. `COZE_BOT_ID:119xxxxxxxx7` 由coze托管的Bot-ID 5...
maxUsage := config.GetConfig().Ratelimit.Usage maxUsage := config.GetYaml().Ratelimit.Usage return cache.Ratelimit.GetUsageCount(userID) > maxUsage } 6 changes: 3 additions & 3 deletions 6 internal/discord/handler/message/automod_handler.go Show comments View file Edit file Delete file...
fileMaxAge: 2592000000, // Allow the application to check the installed version to warn a new version update on the website's homepage. checkVersion: true, // Allow the version to be shown on the website's homepage. showVersion: true, // Meta meta: '' + '' + '' + '' + '' ...
valuestringThe value of the command, for example:pls dep max intervalintegerThe interval at which this command will be re-sent in seconds. Time may vary depending on other commands and responses. If0the command will only run once in the beginning of every active shift ...
(x) +} + +func IntMax(a int, b int) int { + if a >= b { + return a + } else { + return b + } +} + +func GetUUID() string { + code := uuid.New().String() + code = strings.Replace(code, "-", "", -1) + return code +} + +func Max(a int, b int) ...
1. `USER_AUTHORIZATION:MTA5OTg5N***uIfytxUgJfmaXUBHVI` 主动发送消息的discord用户的授权密钥(多个请以,分隔) 2. `BOT_TOKEN:MTE5OTk2xxxxxxxxxxxxxxrwUrUWNbG63w` 监听消息的Bot-Token 3. `GUILD_ID:119xxxxxxxx796` 所有Bot所在的服务器ID 4. `COZE_BOT_ID:119xxxxxxxx7` 由coze托管的Bot-ID 5...
Expand Down Expand Up @@ -139,3 +141,23 @@ func Max(a int, b int) int { return b } } func GetRandomString(length int) string { rand.Seed(time.Now().UnixNano()) key := make([]byte, length) for i := 0; i < length; i++ { key[i] = keyChars[rand.Intn(len(keyChars...
Expand Down Expand Up @@ -139,3 +141,23 @@ func Max(a int, b int) int { return b } } func GetRandomString(length int) string { rand.Seed(time.Now().UnixNano()) key := make([]byte, length) for i := 0; i < length; i++ { key[i] = keyChars[rand.Intn(len(keyChars...
Expand Down Expand Up @@ -139,3 +141,23 @@ func Max(a int, b int) int { return b } } func GetRandomString(length int) string { rand.Seed(time.Now().UnixNano()) key := make([]byte, length) for i := 0; i < length; i++ { key[i] = keyChars[rand.Intn(len(keyChars...