go fmt
This commit is contained in:
parent
5c8c0eb69c
commit
be0cc403b9
2 changed files with 29 additions and 26 deletions
|
@ -8,32 +8,6 @@ import (
|
||||||
"time"
|
"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
|
var BotConfig config
|
||||||
|
|
||||||
func LoadConfig() {
|
func LoadConfig() {
|
||||||
|
|
29
config/types.go
Normal file
29
config/types.go
Normal 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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue