32 lines
572 B
Go
32 lines
572 B
Go
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"`
|
|
AddSource bool `toml:"add_source"`
|
|
}
|