Skip to content

Latest commit

 

History

History
50 lines (26 loc) · 1.1 KB

README.md

File metadata and controls

50 lines (26 loc) · 1.1 KB

JC-Codes

New Version Soon "JCDiscord"

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

Github: JC-Codes

Note: this package is only using for "Discord.js"