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"),