- Clone the repository
- Run
npm install
- Copy the
.env.example
and rename the copy to.env
- Edit the
.env
with yourDiscord bot token
andDiscord bot client id
- Start create your commands !
- Create a file in
/src/commands
named with the name of your command (ex:ping.ts
) - Copy and paste the template below into the file
import { Command } from ".";
import { getNameFromPath } from "../util";
const command: Command = {
name: getNameFromPath(__filename),
description: "Your awesome description !",
async execute(interaction) {
// Do what you want here
},
};
export default command;
- Make your awesome command !
-
TODO
-
Template
import { Button } from "../types";
import { getNameFromPath } from "../util";
const button: Button = {
name: getNameFromPath(__filename),
async execute(interaction, data) {
// Do what you want here
},
};
export default button;
- Run
npm run dev-start
- Build the bot with
npm run build
then start it withnpm run start