Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fissionfeline/discord-js-template
The template for most of my discord bots
https://github.com/fissionfeline/discord-js-template
discod-bots discord discord-js discord-js-base discord-js-bot discord-js-example discord-js-template
Last synced: 4 months ago
JSON representation
The template for most of my discord bots
- Host: GitHub
- URL: https://github.com/fissionfeline/discord-js-template
- Owner: FissionFeline
- Created: 2022-03-03T22:31:44.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-06T09:39:34.000Z (5 months ago)
- Last Synced: 2024-09-28T09:05:40.423Z (4 months ago)
- Topics: discod-bots, discord, discord-js, discord-js-base, discord-js-bot, discord-js-example, discord-js-template
- Language: JavaScript
- Homepage:
- Size: 164 KB
- Stars: 12
- Watchers: 2
- Forks: 10
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# discord-js-template
This is my template for most of my discord.js bots, feel free to use!## Setup
Copy the `.env.example` file to `.env`
```bash
cp .env.example .env
```Open it with your favorite editor, Nano, Vim or Emacs.
Replace the `TOKEN` in the `.env` file with your own Authentication Token given to you by Discord in their portal
Replace the `APPLICATION_ID` in the `.env` file with the application id of the bot.## DO NOT MAKE THE .env FILE PUBLIC
By default, `.env` is git ignored (meaning it is ignored by git). If you disable this, there can be huge security risks such as
- Hackers being able to use your authentication token and using it for malicious purposes
- Bad in generalIf you do not touch the `.gitignore` then you should be fine. But be sure not to remove the `.env` part from the `.gitignore`.