Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mallusrgreatv2/typescriptbottemplate
An extensive template for a Discord.js v14 bot written in Typescript. Completely typesafed handlers for your productivity.
https://github.com/mallusrgreatv2/typescriptbottemplate
base basicdiscordbot bot discord discord-base discord-js discord-v14 discordbasic discordbot djs djs-v14 starting-point template ts typescript
Last synced: about 1 month ago
JSON representation
An extensive template for a Discord.js v14 bot written in Typescript. Completely typesafed handlers for your productivity.
- Host: GitHub
- URL: https://github.com/mallusrgreatv2/typescriptbottemplate
- Owner: mallusrgreatv2
- Archived: true
- Created: 2023-04-19T12:05:19.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-02-26T15:48:14.000Z (9 months ago)
- Last Synced: 2024-09-28T08:42:49.630Z (about 1 month ago)
- Topics: base, basicdiscordbot, bot, discord, discord-base, discord-js, discord-v14, discordbasic, discordbot, djs, djs-v14, starting-point, template, ts, typescript
- Language: TypeScript
- Homepage:
- Size: 170 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MOVED TO https://github.com/mallusrgreatv2/ts-bot-handler
Typescript Bot Template by mallusrgreat
Features
- All types of interactions supported
- Proper logging system and save logs into file (logs.log)
- Fully typed
- Optional MongoDB support
You'll never have to touch the interactionCreate event, ever again.
Interactions supported:
- Slash commands
- All types of select menus
- Modals
- Context menus
- Buttons
Setup
git clone https://github.com/mallusrgreatv2/TypescriptBotTemplate.git
-
npm install
oryarn install
- Copy the content of
.env.example
over to a new file called .env - Change the values in .env
-
npm start
if using npm andyarn Ystart
if using yarn.
(Delete yarn.lock if using npm, and delete package-lock.json if using yarn.)
Rules
- For any interaction or event, name them
(name).(command|event|modal|menu|select|button).ts
- For disabled commands, name them
(name).disabled.ts
- After using tabcomplete to import Command class, add a
.js
suffix to the path.
The path should look something like this:@/Structures/Command.js