Skip to content

Yet another discord bot template with typescript

License

Notifications You must be signed in to change notification settings

DarkTime75/typescript-discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typescript-discord

Yet another Discord Bot Template with TypeScript

Steps to Follow

  • Rename .env.example to .env and fill the required details
  • Run npm install to install the dependencies
  • Replace the "scripts" in package.json with
"scripts": {
    "start": "npm run build && npm run start:prod",
    "start:prod": "node dist/index.js",
    "commands:deploy": "npm run build && node scripts/deploy-commands",
    "commands:delete": "npm run build && node scripts/delete-commands",
    "build": "tsc"
  }
  • Add the below line in package.json
"imports": {
    "#structures/*": "./dist/structures/*",
    "#commands/*": "./dist/interactions/commands/*",
    "#src/*": "./dist/*",
    "#locales/*": "./locales/*"
  }
  • To deploy your slash commands, run npm run commands:deploy
  • Run npm start to run the bot

About

Yet another discord bot template with typescript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published