Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 7 days ago
JSON representation
Multipurpose discordjs panel
- Host: GitHub
- URL: https://github.com/burakbehlull/discord-bot-with-web-panel
- Owner: burakbehlull
- License: apache-2.0
- Created: 2024-07-23T18:47:02.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-11-01T12:14:44.000Z (4 months ago)
- Last Synced: 2025-02-02T04:41:43.132Z (19 days ago)
- Topics: discord-bot, discord-bot-dashboard, discordjs, discordjs-v14, express, javascript, mongodb, nodejs, nodejs-api, react
- Language: JavaScript
- Homepage:
- Size: 94.7 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 URLSERVER_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 |