Simple system for Whatsapp-web.js completely wtitten in TypeScript ~ Made by Jonas
- Functions Handler
- File System
- You will need to install the TypeScript compiler either globally or in your workspace to transpile TypeScript source code to JavaScript:
download Guide
—npm install -g typescript@lastest
Version 4.7.x +.
- Adjust the settings in
./src/config.ts
so everything suits you: - Install all dependencies by using
npm install
- To run the bot:
- build first with
npm run build
/tsc
>> start the bot withnpm run start
(to start once) /npm run nodemon
(to restart automatically on build) - you will need tonpm install -g nodemon
- build first with
name: string;
execute: (...args: any[], client) => any;
Option | Description | Type | Default | Required? |
---|---|---|---|---|
name |
Event name, for example: .on('ready') | string |
Yes | |
execute |
Code being executed on Event | Yes |
- Add a GitHub Star to the project.
- Please give proper credits when you use the Handler, especially if you want to edit and post to public.
The Minimalistic Discord.js v14 TypeScript Handler is available under the MIT License