add SheetID to config structure

This commit is contained in:
Akulij 2025-03-29 19:12:29 +08:00
parent 84b59379d7
commit 319a4b0f66

View File

@ -11,6 +11,7 @@ type Config struct {
BotToken string `env:"BOTTOKEN, required"` BotToken string `env:"BOTTOKEN, required"`
AdminPass string `env:"ADMINPASSWORD, required"` // to activate admin privileges in bot type command: /secret `AdminPass` AdminPass string `env:"ADMINPASSWORD, required"` // to activate admin privileges in bot type command: /secret `AdminPass`
AdminID *int64 `env:"ADMINID"` // optional admin ID for notifications AdminID *int64 `env:"ADMINID"` // optional admin ID for notifications
SheetID string `env:"SHEETID, required"` // id of google sheet where users will be synced
} }
func GetConfig() Config { func GetConfig() Config {