Skip to content

discordjs-base-handler is a functional, beginner friendly Discord Modular Bot written in JavaScript. The goal is to help beginners gain experience in JavaScript with this Discord Modular Bot.

License

Notifications You must be signed in to change notification settings

efebagri/discordjs-base-handler

Repository files navigation

💾 DiscordJS-base-handler

discord.js

visitors

💾 DiscordJS-base-handler

DiscordJS-base-handler is a functional, beginner friendly Discord Modular Bot written in JavaScript. This DiscordJS base handler contains ONLY slash commands.

Getting Started

Requirements

Example Slash Commands

const { SlashCommandBuilder } = require("@discordjs/builders");
const { EmbedBuilder } = require('discord.js');

module.exports = {
    ...new SlashCommandBuilder()
        .setName("YOUR_COMMAND_NAME")
        .setDescription("Type here your description"),

    run: async (client, interaction) => {
        try {
            return 'YOUR FUNCTION HERE';
        } catch (e) {
            console.log(String(e.stack))
            return interaction.channel.send({embeds: [new EmbedBuilder()
                .setColor(0xf13737)
                .setFooter({ text: process.env.APP_NAME, iconURL: client.user.avatarURL(client.user) })
                .setTimestamp()
                .setTitle(`❌ ERROR | An error occurred`)
                .setDescription(`\`\`\`${e.message ? String(e.message).substr(0, 2000) : String(e).substr(0, 2000)}\`\`\``)
            ]});
        }
    },
};

📑 Features

Features Supported
supports subfolders
Slash Command handler
Database Support
Debug System (Coming soon)

🗃️ Commands

Commands Description Version
/help returns help list 1.0
/ping returns websocket ping 1.1
/avatar display a users avatar 1.0
/echo echo your message 1.0
/clearchat delete your messages 1.0
/balance Check your balance 1.0
/work Do some work to earn money 1.0

🙏 Thanks to:

🧑🏻‍🤝‍🧑🏻 Contributors

  • Sloscow
  • SVNKVN9

🚧 Used Open-Source projects

About

discordjs-base-handler is a functional, beginner friendly Discord Modular Bot written in JavaScript. The goal is to help beginners gain experience in JavaScript with this Discord Modular Bot.

Topics

Resources

License

Stars

Watchers

Forks