I AM NOT RESPONSIBLE AND CANNOT BE HELD LIABLE IF YOU MESS UP WITH BOTS. THIS INCLUDES BUT IS NOT LIMITED TO LOSING PRIVILEGES, GETTING KICKED OR BANNED FROM SERVERS, OR BEING BANNED.
Also, an important point is: this requires some knowledge of javascript and your operating system to be able to use. If you don't know JavaScript, you're going to have a bad time.
Rocket-League-Stats is built using the Discord.js library version 12.0.0-dev, which is installed automatically when running npm install
as per the install steps below.
git
command line (Windows|Linux|MacOS) installednode
Version 8.0.0 or highera machine
to host it on. Want it to be online 24/7? Use a machine that is online that long.some intellectual sense
If you don't intend to read the rest of this document, you shouldn't bother using this bot.some knowledge of node
because its up to you to figure out how things work.
In a command prompt in your projects folder (wherever that may be) run the following:
git clone https://github.com/Kashalls/Rocket-League-Stats.git
Once finished:
- In the folder from where you ran the git command, run
cd Rocket-League-Stats
and then runnpm install
- Rename
config.json.example
toconfig.json
- Edit
config.json
and enter your token and other details as indicated.
- You will need to create a Discord Bot. Follow the guide here and place your token in the config.json.
- Obtain a Steam Developer Key and place that also into your config.json. This step is mandatory as this allows you to lookup players using Steam as their platform.
- Register at RocketLeagueStats.com and get an API Key. By now, you should know where to put it.
- If you haven't already, change the prefix to whatever you want, the bot will automagically respond after a reboot.
KEEP YOUR SECRETS A SECRET, AND NEVER SHARE THEM WITH ANYONE
To start the bot, in the command prompt, run the following command:
node bot.js
If you get an error about SQLite not being available or not building, run
npm rebuild
and run the bot again.
If at any point it says "cannot find module X" just run
npm install X
and try again.
For support join the RocketLeagueStats Discord.