Skip to content

Commit

Permalink
bot config
Browse files Browse the repository at this point in the history
  • Loading branch information
nikotung committed Nov 16, 2022
1 parent 5f3889b commit b0b4663
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion command.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ var bot *tgbotapi.BotAPI

func init() {
bot, _ = tgbotapi.NewBotAPI(os.Getenv("token"))

debug := os.Getenv("debug")
if debug == "true" {
bot.Debug = true
}
}

func HandleCommand(message *tgbotapi.Message) {
Expand Down

0 comments on commit b0b4663

Please sign in to comment.