Skip to content
JustCarry edited this page Apr 30, 2018 · 3 revisions

What is that?

  • To execute everything you've added in.

Example:

const Discord = require('discord.js');
const jc = require('jc-codes');
const client = new Discord.Client();

jc.setClient( client ) // Put client
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');
Clone this wiki locally