mirror of
https://github.com/cjdenio/jia.git
synced 2024-11-24 00:23:40 +00:00
Rename bot token environment variable
This commit is contained in:
parent
160291c2f1
commit
5c91f310f7
2 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ PORT=3000
|
||||||
# Redis database to store the last number and its sender
|
# Redis database to store the last number and its sender
|
||||||
REDIS_URL=redis://…
|
REDIS_URL=redis://…
|
||||||
# App config. Obtained from the "Basic Information" page of your app.
|
# App config. Obtained from the "Basic Information" page of your app.
|
||||||
SLACK_CLIENT_BOT_TOKEN=xoxb-…
|
SLACK_BOT_TOKEN=xoxb-…
|
||||||
SLACK_VERIFICATION_TOKEN=xxxx…
|
SLACK_VERIFICATION_TOKEN=xxxx…
|
||||||
# The channel where Jia should validate counted numbers in.
|
# The channel where Jia should validate counted numbers in.
|
||||||
SLACK_CHANNEL_ID=C…
|
SLACK_CHANNEL_ID=C…
|
||||||
|
|
|
@ -15,7 +15,7 @@ type Config struct {
|
||||||
|
|
||||||
func NewConfig() *Config {
|
func NewConfig() *Config {
|
||||||
return &Config{
|
return &Config{
|
||||||
BotToken: getEnv("SLACK_CLIENT_BOT_TOKEN", ""),
|
BotToken: getEnv("SLACK_BOT_TOKEN", ""),
|
||||||
ChannelID: getEnv("SLACK_CHANNEL_ID", ""),
|
ChannelID: getEnv("SLACK_CHANNEL_ID", ""),
|
||||||
Port: getEnvAsInt("PORT", 3000),
|
Port: getEnvAsInt("PORT", 3000),
|
||||||
RedisURL: getEnv("REDIS_URL", "redis://localhost:6379/0"),
|
RedisURL: getEnv("REDIS_URL", "redis://localhost:6379/0"),
|
||||||
|
|
Loading…
Reference in a new issue