Yumu-Core is a basic boilerplate for creating a Discord bot using Discord.js v14, TypeScript, TSX, and TSUP for development and build. It uses CommonJS and ES2021 settings.
Before you begin, you need to have a Discord authentication token in
Discord Developers Panel. Create a .env
file in the
root of the project and add the following (or just rename the file .env.example
to .env
and put
your token):
DISCORD_TOKEN=your_token_here
To install the dependencies, use the following command:
npm install
# or
yarn install
To build the project, use the following command:
npm run build
# or
yarn build
To start the bot, use the following command:
npm run start
# or
yarn start
To start the development mode, use the following command:
npm run dev
# or
yarn dev
This mode watches for changes in the .ts
files and restarts the bot whenever a change is detected.
This project is licensed under the MIT License. See the LICENSE file for more details.