- Login to https://discordapp.com/developers/
- "Create an application"
- Give it a name
- Navigate
Settings>Bot - Click
Add Bot>Yes, do it! - Turn off
PUBLIC BOT(recommended)
- Click
Copytoken, save it for later configuration
- Navigate
OAuth2 - Select
botscope - Select permissions (alternatively, manually set to
59456) - Copy inivite link
- eg
https://discordapp.com/api/oauth2/authorize?client_id=CLIENT_ID&permissions=59456&scope=bot
- eg
- Follow the link, add to your server
- Select a bot channel and type
\#botchannel - Copy the channel ID, save it for later configuration
- Install Node.js
apt-get update
apt-get -y install npm
npm install -g npm
npm install -g n
n lts
node -v
- Ensure that the output of
node -vexceedsv8.xx.x
- Clone repository
git clone https://github.com/lukepighetti/ether-1-bot
cd ether-1-bot
npm install
cp config.example.json config.json
- Edit
config.json- to reflect your Discord bot token
- the Discord ID of the bot channel
- Setup PM2
PM2 is a production-grade daemon for keeping Node.js processes alive
npm install -g pm2
pm2 start index.js
pm2 startup
pm2 save