Only required if self-hosted/wanting to contribute
How to install Ghostybot on your machine
- Discord bot token
- Discord OAuth clientId & clientSecret (Only if using dashboard)
- Node v14+
- FFmpeg
- Mongo URI
These api keys are not required for the bot to function. Only required for their desired command.
DISCORD_CLIENT_ID: the client id of your discord bot applicationDISCORD_CLIENT_SECRET: the client secret of your discord bot applicationDISCORD_BOT_TOKEN: Your bot tokenMONGO_DB_URI: your mongoDb uri
The .env list is not fully updated atm.
- Clone the repo:
git clone https://github.com/Dev-CasperTheGhost/ghostybot - Install all dependencies:
npm install - Rename
config.example.jsontoconfig.json:cp config.example.json config.json - Rename
.env.exampleto.env:Linux: cp .env.example .env - Create a bot at Discord Developers and grab the tokens
- Copy your tokens and paste into
.envmore info about the .env - Modify
config.jsonwhere needed more info about config.json - Run
npm run buildto create the dashboard, if you haveenabled: falsefor the dashboard, skip this step - Run the bot:
npm start- Using pm2:
pm2 start src/index.js --name ghostybot
- Using pm2: