From be0cc403b990196aaf98d2d0b50a1e3b0d388121 Mon Sep 17 00:00:00 2001 From: watn3y Date: Fri, 29 Dec 2023 05:34:41 +0100 Subject: [PATCH] go fmt --- config/config.go | 26 -------------------------- config/types.go | 29 +++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 26 deletions(-) create mode 100644 config/types.go diff --git a/config/config.go b/config/config.go index 034d3bd..f98514f 100644 --- a/config/config.go +++ b/config/config.go @@ -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() { diff --git a/config/types.go b/config/types.go new file mode 100644 index 0000000..e55ca9c --- /dev/null +++ b/config/types.go @@ -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 + } + } +}