jc-codes
v0.0.346
Published
JC-Codes! JustCarry Codes for begginers ( Consider to LifeTeam )
Downloads
12
Readme
JC-Codes
Informations
- How can i install the package ?
By writing npm i jc-codes
command!
- How can i use the package ?
require the package then write <packagename>.setClient(<client>);
then write the code you wanna exec <packagename>.add(<codeName>,<options>)
then exec it! <packagename>.exec()
Example:
const Discord = require('discord.js');
const jc = require('jc-codes');
const client = new Discord.Client();
jc.setClient( client ) // Put client
jc.add('onMessage', { message: 'ping', reply: '[user], Pong!' }); // Using onMessage code, example for ping pong,
jc.add('onJoin', { message: 'Welcome there, [user] have joined to our server', channel: 'channel-id', role: 'role-id' } )
jc.exec( ); // Exec codes
client.login('token');
- How can i use all of this?
In wiki: From here
Author
Discord: JustCarry#2616
Offical discord server: https://discord.gg/65HZmse
Github: JC-Codes
Note: this package is only using for "Discord.js"