Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simplediscordbotsjs/discord-db-template-bot
https://github.com/simplediscordbotsjs/discord-db-template-bot
bot database discord discord-bot discord-bot-template discord-js mongodb mongoose mongoose-js nodejs
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/simplediscordbotsjs/discord-db-template-bot
- Owner: SimpleDiscordBotsJS
- License: gpl-3.0
- Created: 2022-01-24T16:44:25.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-27T17:55:34.000Z (about 2 months ago)
- Last Synced: 2024-10-11T12:04:58.360Z (about 1 month ago)
- Topics: bot, database, discord, discord-bot, discord-bot-template, discord-js, mongodb, mongoose, mongoose-js, nodejs
- Language: JavaScript
- Size: 3.65 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Discord-DB-Template-Bot
It's a template for discord bot
Advantages:
- It's a template...
- Handler's
- DJS 14
- MongoDB---
> # Instructions
## Customizing the Config.json File
```js
{
"BOT_TOKEN": "Enter_discord_bot_token",
"DEV_ID": "Enter_your_discord_id",
"DATABASE_URL": "Enter_mongoDB_database_url","DEBUG_EVENT": false
}
```The bot token can be copied in the Bot section of [your application](https://discord.com/developers/applications)
## To run locally, you need Node.JS
- [Download Node.JS](https://nodejs.org/en/)
## Start
```sh
node .
```---
> ## pm2
>
>
> Installation pm2
>
> ## Install pm2
>
> ```sh
> npm install --global pm2
> ```
>
> ## Startup
>
> - [Check this](https://futurestud.io/tutorials/pm2-restart-processes-after-system-reboot)
>
> ## Starting
>
> ```sh
> pm2 start . --name "Code bot" --watch
> ```
>
> ## Base commands for Neophyte's
>
> ```sh
> pm2 list - show all process
>
> pm2 stop (id) - stopping process
>
> pm2 logs (. or id) - show logs
> ```
>
> more in `pm2 -h` or [this](https://pm2.keymetrics.io/docs/usage/quick-start/) and Google 😉
>
> ---
>
> ## If you want to use nodemon and pm2
>
> - [Check this](https://stackoverflow.com/questions/69457892/nodemon-watch-vs-pm2-watch)
>
>---
> ## Contribution
>
> ​
> Please make sure to read the [Contributing Guide](CONTRIBUTING.md) before sending an issue or making a pull request.