mangotesting
v1.0.0
Published
A discord.js add-on that simplifies your development experience.
Downloads
1
Readme
Installation
To install with node.js, you need to get your file's directory on the command bar. you can achieve that by using cd C:\directory_here
. When you have done that, you may install the module now (presuming you have package.json ready.). Type this into your command bar:
npm i mango
When it is done, you have completed the installation prosess. You may now use the module. (make sure you have discord.js installed!)
Using the package
To use the package, you must connect the package to your js file. To do that, you can type this in:
const mango = require('mango');
const mangoClient = new mango.Client();
Now, you need to login to the discord client and set the prefix. Do that by:
const mango = require('mango');
const mangoClient = new mango.Client();
mangoClient.login('TOKEN');
mangoClient.setPrefix('!');
listeners
You may have a maximum of 200 listeners at the same time. (it may slow down a bit though)
Message listener
Inputted arguments: Aliases, PrefixRequired, Callback
Outputted arguments: Message
Example:
mangoClient.listen(['ping', 'test'], false, Message => {
// Code
});
Message listener
Inputted arguments: Aliases, PrefixRequired, Callback
Outputted arguments: Message
Example:
mangoClient.listen(['ping', 'test'], false, Message => {
// Code
});
Message listener
Inputted arguments: Aliases, PrefixRequired, Callback
Outputted arguments: Message
Example:
mangoClient.listen(['ping', 'test'], false, Message => {
// Code
});