Simple Discord bot template made using discord.js and TypeScript.
- Command handler (loads commands from separate typescript files)
- Admin only commands
- Automatic role assigning to new members
git clone https://github.com/lexonegit/discobot
- Inside the directory do
npm install
- Enter your bot token and main server id in the config file (src/json/config.json)
- Use
npm run start
to run the bot. - For development purposes you can use
npm run dev
to run the bot with Nodemon (automatic restart after changes) - Inside the commands directory (src/commands/), you can create more command files. Two example commands are included.