Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

# discord.js-template

A simple discord.js template
Make sure to ⭐ this repository if you found it useful

Getting 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
```bash

npm 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