A discord bot users can interact with to view each other's slippi data
In order to run this application you will need Node.js
-
Just go on official Node.js website and download the installer.
-
You can install nodejs and npm easily with apt install, just run the following commands in your terminal.
$ sudo apt install nodejs $ sudo apt install npm
-
You can find more information about the installation on the official Node.js website and the official NPM website.
If you are familiar with Git go ahead and clone this repository. Otherwise select the green "Code" button and click "Download ZIP". Once that has downloaded make a new folder and extract the contents of the zip into that folder
In order to run this bot you will need to add a bot to your discord account, then create a file called .env in the root directory that contains your discord secret token and your bot's client ID. For instructions on how to do this read the Creating an app and Configuring a bot sections of this tutorial
Once you've created a .env file and provided your discord API key and client ID in the following format
$ DISCORD_TOKEN = "xxxxxxxxxxxxxxxxxxxxxxxx"
$ CLIENT_ID = "xxxxxxxxxxxxx"
you can invite the bot to a server by generating an invite link.
Open up a terminal, navigate to the root directory of this bot (the folder you dragged the zipped files into) The first time you run this bot you will need to run the following command to download dependencies
$ npm install
After that run the following commands to start hosting the bot
$ node deploy-command.js
$ node .