diff --git a/.env.example b/.env.example index e69759d..e1f7bc1 100644 --- a/.env.example +++ b/.env.example @@ -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 diff --git a/src/discord-bot/discordbot.go b/src/discord-bot/discordbot.go index 0ddd663..0fd23d8 100644 --- a/src/discord-bot/discordbot.go +++ b/src/discord-bot/discordbot.go @@ -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) )