Optional :
For windows :
Clone the repo
git clone https://github.com/PoloLacoste/r6-discord-bot.git
Create a .env
file
Required
EMAIL=[Rainbow six siege account email]
PASSWORD=[Rainbow six siege account password]
TOKEN=[Discord bot token]
CLIENT_ID=[Discord bot application id]
GUILD_ID=[Discord server id]
Optional
MONGO_URL=[Url of the mongodb instance]
REDIS_URL=[Url of the redis instance]
CACHING=[true or false]
Launch the bot
npm start
To generate the dist folder & build all the javascript files run :
npm run build
Then you can run the project with :
node dist/index
Build the container
docker build -t r6-discord-bot .
You can choose between two different docker files
- Dockerfile (default docker file).
- Dockerfile.alpine (this will compile the app in a native executable).
Then you can run the docker container :
docker run r6-discord-bot -e EMAIL=[YOUR_EMAIL] -e PASSWORD=[YOUR_PASSWORD] \
-e TOKEN=[DISCORD_BOT_TOKEN] -e CLIENT_ID=[APPLICATION_CLIENT_ID] -e GUILD_ID=[SERVER_ID]
With docker compose :
docker-compose up
Subcommands:
This command will link your discord account id with your Rainbow Six Siege username.
Example :
/link set Godly
This command will return the current Rainbow Six Siege username linked to your discord account id.
Example :
/link get
This command get your unique Rainbow Six Siege player id.
Example :
/id
Optional arguments :
- platform : To specify the platform the account is on (default
uplay
,uplay
(pc),xbl
(Xbox Live) orpsn
(PlayStation Network))
This command will return your current level & lootbox drop chance percentage.
Example :
/level
Optional arguments :
- platform : To specify the platform the account is on (default
uplay
,uplay
(pc),xbl
(Xbox Live) orpsn
(PlayStation Network))
This command will return your general, casual, ranked and discovery playtime.
Example :
/playtime
Optional arguments :
- platform : To specify the platform the account is on (default
uplay
,uplay
(pc),xbl
(Xbox Live) orpsn
(PlayStation Network))
This command will return analytics of the current season.
Example :
/rank
Optional arguments :
- season : To specify the season number (default is the last season)
- region : To specify the region (default
emea
, can beemea
(Europe, Middle East and Africa),ncsa
(North, Central and South America) orapac
(Asia Pacific)) - platform : To specify the platform the account is on (default
uplay
, can beuplay
(PC),xbl
(Xbox Live) orpsn
(PlayStation Network))
Seasons reference :
6: 'Health', 7: 'Blood Orchid', 8: 'White Noise',
9: 'Chimera', 10: 'Para Bellum', 11: 'Grim Sky',
12: 'Wind Bastion', 13: 'Burnt Horizon', 14: 'Phantom Sight',
15: 'Ember Rise', 16: 'Shifting Tides', 17: 'Void Edge',
18: 'Steel Wave', 19: 'Shadow Legacy', 20: 'Neon Dawn',
21: 'Crimson Heist', 22: 'North Star', 23: 'Crystal Guard',
24: 'High Calibre', 25: 'Demon Veil'
This command will return some general analytics of your account (kills, deaths, wins, losses, ...).
Example :
/stats
Optional arguments :
- platform : To specify the platform the account is on (default
uplay
,uplay
(pc),xbl
(Xbox Live) orpsn
(PlayStation Network))
This command will return the status of all the servers.
Example :
/status