https://github.com/denzaiyy/denz-bot-ts
Small discord bot using typescript
https://github.com/denzaiyy/denz-bot-ts
discord-bot discordjs-v14 dotenv typescript
Last synced: 24 days ago
JSON representation
Small discord bot using typescript
- Host: GitHub
- URL: https://github.com/denzaiyy/denz-bot-ts
- Owner: DenZaiyy
- License: mit
- Created: 2024-04-18T14:46:18.000Z (about 2 years ago)
- Default Branch: development
- Last Pushed: 2025-02-04T20:06:50.000Z (over 1 year ago)
- Last Synced: 2025-03-06T03:40:00.958Z (over 1 year ago)
- Topics: discord-bot, discordjs-v14, dotenv, typescript
- Language: TypeScript
- Homepage:
- Size: 227 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# denZ-BOT
## Description
denz-Bot is a Discord bot built using TypeScript and the discord.js library.
## Installation
1. Clone the repository:
```bash
git clone https://github.com/your-username/denz-bot.git
```
2. Install dependencies using pnpm:
```bash
pnpm install
```
## Configuration
1. Create a new Discord application and bot on the [Discord Developer Portal](https://discord.com/developers/applications).
2. Copy `.env.example` file and name it `.env` for load available environment variables correctly
3. Copy the bot token and paste it in the `.env` file:
```plaintext
DISCORD_TOKEN=your-bot-token
```
4. Copy the bot client id and paste it in the `.env` file:
```plaintext
DISCORD_CLIENT_ID=your-client-id
```
## Usage
After install & build typescript files, you can launch the bot using this command:
1. To simple start bot with existing files:
```bash
pnpm start
```
2. To restart bot with every changes:
```bash
pnpm dev
```
You can evently build typescript files everytime file are changed:
1. To simple build ts files:
```bash
pnpm build
```
2. To build everytime files change:
```bash
pnpm watch
```