fix .env.example and discord-bot env

This commit is contained in:
41666 2020-12-02 18:23:52 -05:00
parent 00f0741e8b
commit 460770407a
2 changed files with 9 additions and 3 deletions

View file

@ -3,6 +3,12 @@ BOT_CLIENT_ID=000000000000000000
BOT_CLIENT_SECRET=RnX8pXXXXXXXXXXXXXXXXXXXXXXXXXu-
BOT_TOKEN=Mzk2MjI3MTM0MjI3NXXXXXXXXXXXXXXXXXXXXXPUlYoARXXXXXXXXXXXXXX
# Comma separated; put your user ID here. Gives elevated permissions to everything.
ROOT_USERS=62601275618889728
# Comma separated; list any bot IDs that are allowed to operate upon this bot.
ALLOWED_BOTS=
# If 6600 or 6601 is taken, change this, and all other 6600/6601 references.
PORT=6600
UI_PORT=6601

View file

@ -10,11 +10,11 @@ import (
)
var (
botToken = common.Getenv("DISCORD_BOT_TOKEN").String()
botClientID = common.Getenv("DISCORD_CLIENT_ID").String()
botToken = common.Getenv("BOT_TOKEN").String()
botClientID = common.Getenv("BOT_CLIENT_ID").String()
rootUsers = common.Getenv("ROOT_USERS").StringSlice()
allowedBots = common.Getenv("ALLOWED_BOTS").StringSlice()
appURL = common.Getenv("PUBLIC_URL").String()
appURL = common.Getenv("UI_PUBLIC_URI").SafeURL()
selfMention = bot.MentionMatcher(botClientID)
)