Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/schblondie/discord.js-template
A simple discord.js bot template
https://github.com/schblondie/discord.js-template
discord discord-bot discord-bot-template discord-js discord-js-bot discordbot discordbot-template discordbottemplate discordjs discordjs-bot discordjs-template
Last synced: about 2 months ago
JSON representation
A simple discord.js bot template
- Host: GitHub
- URL: https://github.com/schblondie/discord.js-template
- Owner: schblondie
- License: mit
- Created: 2023-01-21T08:11:22.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-07T05:59:45.000Z (about 1 year ago)
- Last Synced: 2024-10-19T06:28:53.522Z (3 months ago)
- Topics: discord, discord-bot, discord-bot-template, discord-js, discord-js-bot, discordbot, discordbot-template, discordbottemplate, discordjs, discordjs-bot, discordjs-template
- Language: JavaScript
- Homepage:
- Size: 51.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# discord.js-template
A simple discord.js template
Make sure to ⭐ this repository if you found it usefulGetting Started
You need to install [Node.js](https://nodejs.org/en/) and [Git](https://git-scm.com/downloads)
You can use [Visual Studio Code](https://code.visualstudio.com/) to edit the code
Please create a `.env` file in the root directory and add the following keys to it```javascript
TOKEN=Your Discord Bot Token
TEST_GUILD_ID=Your Test Guild Id
```
[How to get your bot token](https://discordjs.guide/preparations/setting-up-a-bot-application.html#creating-your-bot)
[How to get your guild ID](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID-)Development
Run the following command in the terminal once to install the dependencies
```bash
npm install
```Run the following command in the terminal to start the bot
```bashnpm run dev
```You can run the following command to interactively add interaction and event files to the directory
```bash
npm run add
```Production
Run the following command in the terminal to automatically install the dependencies and start the bot
```bash
npm run start
```Useful Links
[BetterComments](https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments) - see comments with colors
[Discord.js Docs](https://discord.js.org/#/docs/main/stable/general/welcome)
[Discord.js Guide](https://discordjs.guide/)
[Discord.js Discord](https://discord.gg/djs)License
This repository is licensed under the MIT License - see the [LICENSE](LICENSE) file for details
This repository is not affiliated with Discord or Discord.js