Skip to content

Latest commit

 

History

History
34 lines (31 loc) · 942 Bytes

README.md

File metadata and controls

34 lines (31 loc) · 942 Bytes

Codes.js

A discord.js clone but more simple and have more features.

Example usage:

const Client = require('codes.js');
const client = new Client(botToken, ['YOUR ID','OTHER ID'], '-');
//new Client(توكن بوتك, ['YOUR ID'], 'بريفكس بوتك')
client.start();
client.on('ready', () => {
  /* eslint-disable no-console */
  console.log(`${client.user.tag} is ready
OWNER: ${client.owner}`);
});

client.command({
    name: "ping",
    aliases: ['kpop', 'brok', 'pings', 'pong']
  },
  message => {
    message.channel.send('PONG!');
  });

client.command({
  name: "help",
  aliases: ["help", "مساعدة", "قائمة الأوامر", "commands"]
}, message => {
  message.channel.send(client.user.username + " Help list:\n")
})