This commit is contained in:
watn3y 2023-12-29 05:34:41 +01:00
parent 5c8c0eb69c
commit be0cc403b9
2 changed files with 29 additions and 26 deletions

View file

@ -8,32 +8,6 @@ import (
"time"
)
type config struct {
APIToken string
DebugMode bool
PrivilegedUsers []int64
Shutup map[int64]time.Time //! is always filled at startup, not present in config
Webserver struct {
Port string
}
Balonlyl struct {
EnabledChats []int64
BalonlylAT string
TriggerWords []string
}
GayPoints struct {
EnabledChats []int64
ModifyUsers []int64
}
Download struct {
Prefix string
Yourls struct {
APIPath string
Signature string
}
}
}
var BotConfig config
func LoadConfig() {

29
config/types.go Normal file
View file

@ -0,0 +1,29 @@
package config
import "time"
type config struct {
APIToken string
DebugMode bool
PrivilegedUsers []int64
Shutup map[int64]time.Time //! is always filled at startup, not present in config
Webserver struct {
Port string
}
Balonlyl struct {
EnabledChats []int64
BalonlylAT string
TriggerWords []string
}
GayPoints struct {
EnabledChats []int64
ModifyUsers []int64
}
Download struct {
Prefix string
Yourls struct {
APIPath string
Signature string
}
}
}