Rename bot token environment variable

This commit is contained in:
Victor Truong 2020-08-04 02:05:17 -07:00
parent 160291c2f1
commit 5c91f310f7
2 changed files with 2 additions and 2 deletions

View file

@ -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…

View file

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