Simple tool that posts RaceRoom Racing Experience Dedicated Server results to a discord page.
Result browsing is made possible by https://simresults.net/
The bot posts the results json of a race to discord, plus an additional metadata json file for simresults. Discord files are publicly available so simresults can reach them.
How a url is built up: https://simresults.net/remote?results= + https://cdn.discordapp.com/attachments/ + .json
This bot does not parse the result! It only handles file uploading and link creation.
Create the following files in the root dir:
config.json - read-only config. Not all vars are used
{
"path": "monitordir",
"discord": {
"client_secret": "",
"client_id": ,
"public_key": "",
"bot_token": "",
"prefix": "rrbot|"
}
}
runtimedb.json - written to by the application
{}
- open powershell
- run: npm install -g qckwinsvc
- Ensure we can run scripts (you may want other settings, read up on this command): Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope LocalMachine
- run: qckwinsvc and follow instructions
- Invite the bot to your server
- Run the command rrbot|setchannel in the channel you would like to post your results into
- Done!