1
0
Fork 0

s/DEBUG/TELEGRAM_DEBUG/

This commit is contained in:
Daniele Tricoli 2022-03-08 01:34:52 +01:00
parent ff78aae3d7
commit ac0d898af9
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ import (
)
const (
DEBUG = "DEBUG"
TELEGRAM_DEBUG = "TELEGRAM_DEBUG"
TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN"
MASTODON_SERVER_ADDRESS = "MASTODON_SERVER_ADDRESS"
MASTODON_ACCESS_TOKEN = "MASTODON_ACCESS_TOKEN"
@ -47,7 +47,7 @@ the specified Mastodon account.`,
log.Panic(err)
}
bot.Debug = parseBoolOrFalse(os.Getenv(DEBUG))
bot.Debug = parseBoolOrFalse(os.Getenv(TELEGRAM_DEBUG))
u := tgbotapi.NewUpdate(0)
u.Timeout = 30