summaryrefslogtreecommitdiff
path: root/types
diff options
context:
space:
mode:
Diffstat (limited to 'types')
-rw-r--r--types/bot.go19
-rw-r--r--types/logger.go34
2 files changed, 53 insertions, 0 deletions
diff --git a/types/bot.go b/types/bot.go
new file mode 100644
index 0000000..417aecc
--- /dev/null
+++ b/types/bot.go
@@ -0,0 +1,19 @@
+package types
+
+type ActivityType int
+
+const (
+ PLAYING ActivityType = iota
+ LISTENING
+ WATCHING
+ STREAMING
+)
+
+type BotConfig struct {
+ DiscordToken string
+ SpotifyClientId string
+ SpotifyClientSecret string
+ YoutubeAPIKey string
+ Activity ActivityType
+ ActivityMessage string
+}
diff --git a/types/logger.go b/types/logger.go
new file mode 100644
index 0000000..a913312
--- /dev/null
+++ b/types/logger.go
@@ -0,0 +1,34 @@
+package types
+
+type LogLevel string
+
+const (
+ Debug LogLevel = "debug"
+ Info LogLevel = "info"
+ Warn LogLevel = "warn"
+ Error LogLevel = "error"
+ Success LogLevel = "success"
+
+ Reset = "\033[0m"
+ Cyan = "\033[36m"
+ Gray = "\033[90m"
+
+ LevelColorInfo = "\033[34mINFO \033[0m"
+ LevelColorWarn = "\033[33mWARN \033[0m"
+ LevelColorError = "\033[31mERROR \033[0m"
+ LevelColorDebug = "\033[35mDEBUG \033[0m"
+ LevelColorSuccess = "\033[32mSUCCESS\033[0m"
+
+ MessageColorInfo = "\033[97m"
+ MessageColorWarn = "\033[33m"
+ MessageColorError = "\033[31m"
+ MessageColorDebug = "\033[90m"
+ MessageColorSuccess = "\033[32m"
+)
+
+type LogOptions struct {
+ Timestamp bool
+ Prefix string
+ Level LogLevel
+ Fatal bool
+}