generated from lucien/bot-template-ts
No description
- TypeScript 99.6%
- Dockerfile 0.4%
| src | ||
| .dockerignore | ||
| .gitignore | ||
| db.sqlite | ||
| deno.json | ||
| Dockerfile | ||
| README.md | ||
Discord JS template in Typescript
Installation
- Clone the repository
- Run
npm iandnpm i -g typescript tsxto install all dependences - Change
.envExemplefile to.env - Enter your bot token and bot id in
.envfile
Developpement
- You can copy the ping.ts file in
/src/commands/defaultto start creating your own commands - You can modify the files in
/src/eventsto use events as you would
NPM commands
- Run
npm run devto run the dev mode - Tun
npm run buildto build the project - Run
npm run startto run the compiled code
Docker configuration
services:
letsgow-gambling:
image: git.leizour.fr/lucien/letsgowwwwwwww-gambling/letsgowwwwwwww-gambling:latest
container_name: letsgow-gambling
restart: unless-stopped
environment:
- DISCORD_TOKEN="CHANGE ME"
- BOT_ID="1234"
- GUILD_ID="1234"
- ADMIN_ROLE="1234"
- CHANNEL_ID="1234"
volumes:
- ./db.sqlite:/app/db.sqlite