Discord Bot that suggests a random Valorant agent in discord for you to play.
!agent
sends back a message with a random agent from Valorant!allagents
sends back all agents. (Mainly for debugging at this stage)
All commands below are to be executed relative to the repository's root directory.
Install Node.js and npm. This bot was tested with Node V17, but any recent version (16+) should do.
-
Clone this repository.
-
Install all required dependencies using
npm
:npm install .
-
Create a file called
.env
by copying.env.template
. -
Fill out all necessary variables in the
.env
file. Right now, this file will only contain your Discord bot token, which you can obtain from your bot's application page. -
You can now run the bot from the repository's root:
node .
Install the latest version of Docker and optionally Docker Compose.
-
You can easily build a local container image:
docker build -t valorantbro .
-
Just like in the manual installation above, create a file called
.env
by copying.env.template
. -
Fill out all necessary variables in the
.env
file. Right now, this file will only contain your Discord bot token, which you can obtain from your bot's application page. -
The container can then be started:
docker run -d -v $(pwd)/.env:/home/node/.env:ro --name valorantbro valorantbro:latest
As you can see, the
.env
file you created is also (bind-)mounted into the container in order to securely provide your bot's token.
-
Build the image and run the container in one go:
docker-compose run -d