Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dsnsgithub/ts-discord-bot
https://github.com/dsnsgithub/ts-discord-bot
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dsnsgithub/ts-discord-bot
- Owner: dsnsgithub
- Created: 2024-06-26T02:42:10.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-26T02:55:06.000Z (5 months ago)
- Last Synced: 2024-06-26T03:52:24.657Z (5 months ago)
- Language: TypeScript
- 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 .