diff --git a/envvars.go b/envvars.go index d207d2d..540b466 100644 --- a/envvars.go +++ b/envvars.go @@ -19,11 +19,10 @@ var ( template.New("anime-episode-filepath-pattern").Parse, ) - TelegramDownloadMessagePatternStr = logic.EscSeqReplacer.Replace(envvars.String("TELEGRAM_DOWNLOAD_MESSAGE_PATTERN", `Download started\n{{.Anime.Title.UserPreferred}}第{{.Episode}}話`)) + TelegramBotToken = envvars.String("TELEGRAM_API_TOKEN", "") + TelegramChatID = envvars.Int64("TELEGRAM_CHAT_ID", 0) + TelegramDownloadMessagePatternStr = logic.EscSeqReplacer.Replace(envvars.String("TELEGRAM_DOWNLOAD_MESSAGE_PATTERN", `Download started\n\n{{.Title.UserPreferred}} episode {{.Episode}}`)) TelegramDownloadMessagePattern = template.Must(template.New("telegram-download-message-pattern").Parse(TelegramDownloadMessagePatternStr)) DownloadAll = envvars.Bool("DOWNLOAD_ALL_ANIMES", false) - - TelegramBotToken = envvars.String("TELEGRAM_API_TOKEN", "") - TelegramChatID = envvars.Int64("TELEGRAM_CHAT_ID", 0) )