support long messages, rename to RelayChannel, move commands out of main

This commit is contained in:
wish
2024-01-01 21:22:51 +11:00
parent a602bda47b
commit 0d28637095
5 changed files with 70 additions and 54 deletions

View File

@@ -171,14 +171,15 @@ type GameplayOptions struct {
// Discord holds the discord integration config.
type Discord struct {
Enabled bool
BotToken string
RealTimeChannel DiscordRealTime
Enabled bool
BotToken string
RelayChannel DiscordRelay
}
type DiscordRealTime struct {
Enabled bool
RealtimeChannelID string
type DiscordRelay struct {
Enabled bool
MaxMessageLength int
RelayChannelID string
}
// Command is a channelserver chat command