1.0.6 • Published 3 years ago
discord-nota v1.0.6
discord-nota
An easy to use discord.js library !
Installation
npm install discord-nota
Usage
index.js:
const { client, CommandHandler, RunCommand, EventHandler } = require('discord-nota')
CommandHandler(`${__dirname}/Commands/`) //Your command folder
EventHandler(`${__dirname}/Events/`) //Your event folder
RunCommand('n!') // Prefix
client.login('Discord Token')
Commands/Ping.js
module.exports.run = (client, message, args) => {
message.channel.send('pong')
}
module.exports.info = {
aliases: ['pong', 'repond'],
name: 'ping'
}
Events/message.js
const { event, client } = require("discord-nota")
event.on('message', async(message) => {
console.log('Someone sent a message')
})
Links
- Repository - Github repository
- Discord - Discord Server
Acknowledgments
- Thanks to anyone whose code was used!