feat: adjustable log level

This commit is contained in:
Yiyang Kang 2023-03-08 04:46:00 +08:00
parent ed46c2b274
commit 89ddf89052
3 changed files with 13 additions and 2 deletions

1
cfg.go
View file

@ -10,6 +10,7 @@ import (
)
type ConfigDef struct {
LogLevel string `env:"TG_LOG_LEVEL" env-default:"info"`
AdminUIDs []int64 `env:"TG_ADMIN_UIDS"`
TGBotToken string `env:"TG_TOKEN" env-required:""`
TGAnnounceCommands bool `env:"TG_ANNOUNCE_CMDS"`