klanter-handler
v1.0.7
Published
Komut handler
Downloads
9
Maintainers
Readme
Klanter-handler
Kurulum
npm i klanter-handler
Kullanım
Ana Dosya
var discord = require("discord.js")
var client = new discord.Client()
var handler = require("klanter-handler")
var prefix = "!"
var handlerCMD = new handler(client, "/commands", prefix)
client.on("message", (message) => {
handlerCMD.komutyükle(message)
})
Komut Dosyası
Örnek Komut
module.exports = {
name: "örnek",
aliases: ["example", "örnek"],
category: "Main",
description: "Örnek bir komut",
usage: "!örnek",
run: async function (client, command, args, message) {
message.channel.send("Selam !")
}
}