- Docker Compose.
- Discord account.
- Dicecloud account - do NOT register with Google, create a normal account.
- Google Drive Service Account.
- Follow steps 1-7 in the For Bots: Using Service Account portion. The contents of this JSON file is
your
GOOGLE_SERVICE_ACCOUNT
env var. - Alternatively, save that json file in the root project directory as
avrae-google.json
.
- Follow steps 1-7 in the For Bots: Using Service Account portion. The contents of this JSON file is
your
- Click Username in top left top open Account page
DICECLOUD_USER
is the login usernameDICECLOUD_PASS
is your password (recommended to use a dedicated bot account with a random generated password)DICECLOUD_TOKEN
is theAPI KEY
revealed bySHOW
User Settings
(cog icon) >Advanced
, enable "Developer Mode".- Right-click your name in the user list and
Copy ID
, this is yourDISCORD_OWNER_USER_ID
below. - Create a server for yourself to test with: big
+
icon,Create a server
.
- Go to the Discord Developer Portal.
New Application
, give it a cool name,Create
.- Copy the
Application ID
fromGeneral Information
, you'll need this shortly. Bot
>Add Bot
.- (Optional but recommended): Switch off
Public Bot
so only you can add this bot to servers. - Scroll down to
Privileged Gateway Intents
, and enable the switches to the right ofServer Members Intent
andMessage Content Intent
. Click to reveal token
, this is yourDISCORD_BOT_TOKEN
below.- Invite your bot to your
server:
https://discordapp.com/oauth2/authorize?permissions=274878295104&scope=bot&client_id=1234
, replacing1234
with your bot'sApplication ID
. Make sure you select the correct server!
- Create a
docker\env
file with real credentials. - Run
docker-compose up --build
.
DISCORD_BOT_TOKEN=1
DISCORD_OWNER_USER_ID=1
DICECLOUD_USER=b
DICECLOUD_PASS=c
DICECLOUD_TOKEN=d
# set these to these literal values
MONGO_URL=mongodb://root:topsecret@mongo:27017
REDIS_URL=redis://redis:6379/0
# set this to the contents of the JSON file downloaded in the Google Drive Service Account step
GOOGLE_SERVICE_ACCOUNT=e