This repository was archived by the owner on Feb 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Setup
George edited this page Feb 14, 2020
·
1 revision
- Discord bot token If you don't know how to get this read THIS article
- Rapid-API token. Get that from HERE
- NodeJS
- ForeverJS
- Server hosting (Originally was hosted on an EC2 service on AWS, switched to DigitalOcean at the end)
- Install NodeJS on your server, if you're running Linux simply type
sudo apt-get install nodejs
for Ubuntu and for CentOS runsudo yum install nodejs
- Make sure Node is installed by running
node --version
which should print out12.16.0
or whatever the current version is - Create a sub folder for the bot
- Clone this repo either onto your server directly or onto your computer
- Make sure the code is in the sub folder, if you directly cloned it onto your computer you will need to move it onto the server using an FTP client (I recommend PuTTy) or using the SCP command on Windows
- Install the required modules for the bot using NPM these are
npm install discord.js
npm install unirest
npm install urban-dictionary
npm install yo-mamma
- You now need to edit the config, which is in the parent directory. You will need your Discord API key and Rapid API key. See the prequisites for this information.
- Install the Forever module
npm install forever -g
- Make sure you're in the correct directory, you can check with
pwd
or alternatively runls
and see if the bot.js file is in there. - Run
forever start bot.js
this will create a new instance of the bot. - Check that it's online by running the &sys command
Any commands you need to restart, stop, start etc the bot are going to be done through the forever module, you will mainly need the following
forever stop bot.js
forever restartAll
forever start bot.js
forever list
I will no longer provide updates, support or anything for this bot now and the repo will be archived, you're more than welcome to clone to repo and make your own versions. Please follow the (MIT) license that has been set for the bot.