Skip to content
This repository was archived by the owner on Feb 15, 2020. It is now read-only.
George edited this page Feb 14, 2020 · 1 revision

Setup guide

Prerequisites

  • 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)

Server setup

  1. Install NodeJS on your server, if you're running Linux simply type sudo apt-get install nodejs for Ubuntu and for CentOS run sudo yum install nodejs
  2. Make sure Node is installed by running node --version which should print out 12.16.0 or whatever the current version is
  3. Create a sub folder for the bot
  4. Clone this repo either onto your server directly or onto your computer
  5. 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
  6. 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
  7. 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.
  8. Install the Forever module npm install forever -g
  9. Make sure you're in the correct directory, you can check with pwd or alternatively run ls and see if the bot.js file is in there.
  10. Run forever start bot.js this will create a new instance of the bot.
  11. Check that it's online by running the &sys command

Bot maintenance

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

Disclaimer

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.

Clone this wiki locally