mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 19:39:11 +00:00
fix .env.example and discord-bot env
This commit is contained in:
parent
00f0741e8b
commit
460770407a
2 changed files with 9 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue