basic setup, /ping added
This commit is contained in:
32
relay/structs.go
Normal file
32
relay/structs.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user