Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/burakbehlull/discord-bot-with-web-panel

Multipurpose discordjs panel
https://github.com/burakbehlull/discord-bot-with-web-panel

discord-bot discord-bot-dashboard discordjs discordjs-v14 express javascript mongodb nodejs nodejs-api react

Last synced: about 13 hours ago
JSON representation

Multipurpose discordjs panel

Awesome Lists containing this project

README

        

# Discord Public Bot with Web Panel

### path:
` npm install ` or ` yarn `

` npm run dev ` or ` yarn dev `


### Create an `.env` file on the server and client side and configure it like this:
` server `
```js
PORT = 80 // WEB LOCAL PORT
TOKEN = //BOT TOKEN
BOT_ID = // YOUR BOT
MONGO_URI = // MONGODB URL

SERVER_ID = // YOUR SERVER ID
```

` client `
```js
VITE_API_URI = // YOUR SERVER URL
```

| Route | Opposite |
| -------- | -------- |
| **/bot** | Where to set bot settings |
| **/user** | Where operations are performed on users on the server |
| **/server** | Server operations link path |
| **/auth** | Route that sets user login registration and admin privileges |
| **/messages** | Send Server Channel or User Dm message and fetch |

### **/bot**
| Route | About | Values | Request |
| -------- | -------- | -------- | -------- |
| **/status** | Sets the bot's do not disturb or idle status | status | POST |
| **/presence** | Sets the description of the bot playing and playing part | name, type | POST |
| **/servers** | Bot servers | ... | GET |

### **/user**
| Route | About | Values |
| -------- | -------- | -------- |
| **/ban** | Bans the user | serverId, userId, reason |
| **/kick** | Kicks the user | serverId, userId, reason |
| **/unban** | Unbans the user | serverId, userId, reason |
| **/timeout** | Timeout the user | serverId, userId, time, reason |
| **/roles** | user roles add and remove | serverId, userId, roles, isDelete (true=delete, false=add) |

### **/server**
| Route | About | Values |
| -------- | -------- | -------- |
| **/** | Fetches all data on the server | serverId |
| **/roles** | Returns all roles on the server | serverId |
| **/channels** | Returns all channels on the server | serverId |

### **/auth**
| Route | About | Values |
| -------- | -------- | -------- |
| **/create** | User creates | username, displayName, email, password |

### **/messages**
| Route | About | Values | Request |
| -------- | -------- | -------- | -------- |
| **/server/send** | DM the channel | serverId, channelId, content | POST |
| **/user/send** | Sends a dm to the user | userId | POST |
| **/server/all** | Pulls dm on server channel | serverId, channelId | POST |
| **/user/all** | Pulls dm on user channel | userId | POST |
| **/reply** | Reply to message in dm | userDm: true, userId, messageId | POST |
| **/reply** | Reply to channel message on server | userDm: false, messageId, serverId, channelId | POST |