From 5c91f310f7e45bc0cd1793ca6139ff2825d9bd0a Mon Sep 17 00:00:00 2001 From: Victor Truong Date: Tue, 4 Aug 2020 02:05:17 -0700 Subject: [PATCH] Rename bot token environment variable --- README.md | 2 +- pkg/jia/config.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b5842cb..c7575c2 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ PORT=3000 # Redis database to store the last number and its sender REDIS_URL=redis://… # App config. Obtained from the "Basic Information" page of your app. -SLACK_CLIENT_BOT_TOKEN=xoxb-… +SLACK_BOT_TOKEN=xoxb-… SLACK_VERIFICATION_TOKEN=xxxx… # The channel where Jia should validate counted numbers in. SLACK_CHANNEL_ID=C… diff --git a/pkg/jia/config.go b/pkg/jia/config.go index 418694d..f4dd833 100644 --- a/pkg/jia/config.go +++ b/pkg/jia/config.go @@ -15,7 +15,7 @@ type Config struct { func NewConfig() *Config { return &Config{ - BotToken: getEnv("SLACK_CLIENT_BOT_TOKEN", ""), + BotToken: getEnv("SLACK_BOT_TOKEN", ""), ChannelID: getEnv("SLACK_CHANNEL_ID", ""), Port: getEnvAsInt("PORT", 3000), RedisURL: getEnv("REDIS_URL", "redis://localhost:6379/0"),