Bot requires a .env
file. Here is an example:
TOKEN=[bot token here] PTERODACTYLURL=[url to pterodactyl panel here]
Node.js
A step by step series of how to get the bot running
- Goto downloads
- You can choose the lts or the current version of node.js depending on what you want then download the installer according to your operating system
After you have node.js:
- Create a folder on your computer.
- On windows open cmd and copy the folder location from top of the file browser.
- On cmd type cd "then paste the location" and enter
- Do in the cmd
npm i discord.js
to install discord.js Before you do the install command make sure the cmd window is in the right folder what is the api used to connect to Discord.
- Download this project as a zip file then move the zip file to the folder you created
- Unzip it there then put token in the config.json to get a token goto Discord Developer Site link below
- After you have token in config.json and have installed discord.js you can start bot by typing
node app.js
Other things you can do for bot develoment
You can install nodemon to restart the bot everytime the bot file is changed
to install nodemon globally type `npm i -g nodemon`
- CappeDiem - Initial work - CappeDiem
- Node.js - the base that the bot runs on
- discord.js - node.js link to the discord bot api
- [dotenv]
- [jsoning]
- [axios]