Skip to content

JustCarry/JC-Codes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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"

Releases

No releases published

Packages

No packages published