aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-09-29 12:03:22 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-09-29 12:03:22 +0200
commitca2114e401646c52dda3af6cb4725779fafc82c0 (patch)
tree579d4b3a6ad946cd4d40e7c53578053700a55ffa /main.go
parent6b58e085ed7373e3e31bc6399c5489f365353af1 (diff)
feat(debug): verbose mode
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.go b/main.go
index 261e882..b755b28 100644
--- a/main.go
+++ b/main.go
@@ -37,6 +37,7 @@ var (
Minor: 3,
Patch: 0,
}
+ verbose bool
stopPeriodicReducer chan<- interface{}
)
@@ -50,6 +51,7 @@ func init() {
slog.Error("error while loading .env file", "error", err)
}
flag.StringVar(&token, "token", os.Getenv("TOKEN"), "token of the bot")
+ flag.BoolVar(&verbose, "v", verbose, "verbose")
// Use a nicer font
fontTTF, parseErr := opentype.Parse(interTTF)
@@ -189,6 +191,7 @@ func main() {
Intents: discord.IntentsAllWithoutPrivileged |
discord.IntentsMessageContent |
discord.IntentGuildMembers,
+ Verbose: verbose,
}
// related to rolereact