Skip to content

Commit

Permalink
fix: MESSAGE_MAX_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
deanxv committed Aug 17, 2024
1 parent 2db58ce commit 5cf4f22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion common/constants.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package common

var Version = "v4.6.0" // this hard coding will be replaced automatically when building, no need to manually change
var Version = "v4.6.1" // this hard coding will be replaced automatically when building, no need to manually change

const (
RequestIdKey = "X-Request-Id"
Expand Down
2 changes: 2 additions & 0 deletions discord/discord.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@ func loadBotConfig() {
if err != nil {
common.FatalLog(fmt.Sprintf("messageMaxToken 必须为数字!"))
}
} else {
botConfig.MessageMaxToken = strconv.Itoa(128 * 1000)
}
}

Expand Down

0 comments on commit 5cf4f22

Please sign in to comment.