basic setup, /ping added

This commit is contained in:
2025-11-30 10:58:16 +01:00
parent 781a499a6c
commit e045d0d01f
9 changed files with 296 additions and 0 deletions

32
relay/structs.go Normal file
View File

@@ -0,0 +1,32 @@
package relay
import (
"log/slog"
"github.com/disgoorg/disgo/bot"
"github.com/disgoorg/paginator"
"github.com/disgoorg/snowflake/v2"
)
type Bot struct {
Cfg Config
Client bot.Client
Paginator *paginator.Manager
}
type Config struct {
Log LogConfig `toml:"log"`
Bot BotConfig `toml:"bot"`
}
type BotConfig struct {
DevGuilds []snowflake.ID `toml:"dev_guilds"`
Token string `toml:"token"`
Name string `toml:"name"`
}
type LogConfig struct {
Level slog.Level `toml:"level"`
Format string `toml:"format"`
AddSource bool `toml:"add_source"`
}