Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ether1project/ether-1-discordbot
https://github.com/ether1project/ether-1-discordbot
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ether1project/ether-1-discordbot
- Owner: Ether1Project
- Created: 2018-09-28T13:21:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T04:28:53.000Z (almost 2 years ago)
- Last Synced: 2024-04-11T13:40:59.427Z (9 months ago)
- Language: JavaScript
- Size: 979 KB
- Stars: 0
- Watchers: 2
- Forks: 6
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 1. Create a Discord App
- Login to https://discordapp.com/developers/
- "Create an application"
- Give it a name## 2. Create a bot account
- Navigate `Settings` > `Bot`
- Click `Add Bot` > `Yes, do it!`
- Turn off `PUBLIC BOT` (recommended)## 3. Collect token
- Click `Copy` token, save it for later configuration
## 4. Create invite link
- Navigate `OAuth2`
- Select `bot` scope
- 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`## 5. Setup Discord
- Follow the link, add to your server
- Select a bot channel and type `\#botchannel`
- Copy the channel ID, save it for later configuration## A. Setup server
- 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 -v` exceeds `v8.xx.x`
## B. Download source code
- Clone repository
```
git clone https://github.com/lukepighetti/ether-1-bot
cd ether-1-bot
npm install
cp config.example.json config.json
```## C. Configure the bot
- Edit `config.json`
- to reflect your Discord bot token
- the Discord ID of the bot channel## D. Setup Process
- 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
```