1.0.6 • Published 3 years ago

discord-nota v1.0.6

Weekly downloads
14
License
ISC
Repository
github
Last release
3 years ago

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

Acknowledgments

  • Thanks to anyone whose code was used!
1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago