Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dsnsgithub/ts-discord-bot
A template for more advanced discord bots.
https://github.com/dsnsgithub/ts-discord-bot
discord discord-bot javascript slash-commands ts-dotenv typescript
Last synced: 15 days ago
JSON representation
A template for more advanced discord bots.
- Host: GitHub
- URL: https://github.com/dsnsgithub/ts-discord-bot
- Owner: dsnsgithub
- Created: 2024-06-26T02:42:10.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-26T02:55:06.000Z (7 months ago)
- Last Synced: 2024-11-09T21:07:58.436Z (2 months ago)
- Topics: discord, discord-bot, javascript, slash-commands, ts-dotenv, typescript
- Language: TypeScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Generic Typescript Discord Bot (discord.js)
A template for more advanced discord bots.
- Slash commands, ts-dotenv for typescript enviroment variables.
- Requires ts-node to be installed globally### 2. Enter the repository and install dependencies:
cd typescript-discord-bot
npm install### 3. Create a `.env` file and add these properties:
DISCORD_BOT_TOKEN = [create a discord bot in the developer portal and add the token here]
CLIENT_ID = [discord bot client id, found in discord developer portal]
GUILD_ID = [id from guild where you want to log/send chat messages]### 4. Register Discord Slash Commands:
ts-node deploy-commands.ts
### 5. Run the Discord Bot:
ts-node .