npm.io
2.9.4 • Published 4 years ago

discord-rc

Licence
GNU
Version
2.9.4
Deps
1
Size
53 kB
Vulns
0
Weekly
0

drcpic

npm installnfo

NPM version NPM downloads

Discord Ready Codes

Are you very lazy to code, or you don't know how to code discord bots?
Discord Ready Codes will give you free codes for Discord.js with just a line!

Join Support Server

Discord Server

How-to install:

How-to use :

USE console.log(drc.help()) TO GET A FULL HELP LIST OF DISCORD.RC in YOUR CONSOLE

Here are some examples about setting up a bot using Discord-ReadyCodes.

WARNING: ONLY DISCORD.JS VERSION 12 IS SUPPORTED.

const drc = require('discord-rc');
//Setting up a new bot
const bot = new drc.Bot({ prefix: "!!" });//default prefix is "!"
let token = "YOUR BOT TOKEN HERE";
//Logging in to the bot
bot.login(token);
bot.ready(`Logged in to ${bot.user.username}`)//console.log a message when the bot is ready*

//Setting the bot status
bot.activity(`!!help`, { type: "PLAYING" });
 

Status

Commands

//No PROFESSIONAL coders required, you just have to run this simple code
//
//Kick Command
//You can also customize messages of Almost every command
//Setting messages to a command is Optional
let kick = new drc.Command("kick", {
/* Variables: 
[user] -> mentioned user
[author] -> message author
[channel] -> message channel
[guild] -> message server name */
kickMessage:"[user] has been kicked from the server",//message sent when a user gets kicked
noPermission: "[author], you dont have permission to execute this command", //if a user doesnt have the kick permission
clientNoPermission: ":x: i dont have permission to kick members",//if bot doesnt have permission to kick members
userNotFound: "User not found."//if user ID or mentioned user is not found
});
kick.start();
//You can also run many commands with one constant
const bulk = new drc.BulkCommands(['kick', 'ban'], {
banMessage:"[user] has been banned from the server",//This is for the ban command
kickMessage:"[user] has been kicked from the server",//This is for the kick command
noPermission: "[author], you dont have permission to execute this command",//this is for all of the commands that are being bulk started here
clientNoPermission: ":x: i dont have permission to kick members",//this is for all of the commands that are being bulk started here
userNotFound: "User not found."//this is for all of the commands that are being bulk started here
})
bulk.start();

//Now the kick & ban command are working!
//YOU CAN FIND THE AVAILABLE COMMANDS BELOW THIS CODE

banExample

Available Commands:

Games

  • 8ball - 8ball Game. NO CUSTOMIZATION
  • howgay - how gay Game. NO CUSTOMIZATION

Moderation

  • ban - Ban command. CUSTOMIZATION AVAILABLE
  • kick - Kick command. CUSTOMIZATION AVAILABLE
  • lock - Deny the permission SEND_MESSAGES for everyone in a channel. CUSTOMIZATION AVAILABLE
  • unlock - Allow the permission SEND_MESSAGES for everyone in a channel. CUSTOMIZATION AVAILABLE
MORE SOON....

USE console.log(drc.help()) TO GET A FULL HELP LIST OF DISCORD.RC in YOUR CONSOLE

WE ARE RELEASING OUR DOCS SOON

Other useful Stuff:

const drc = require('discord-rc');
let array = ["Hi", "Hello", "How are you?", "Do you like cookies?"];
drc.randomize(array); //Returns a random slice in that array
//
drc.roll(100);//Returns a number between 0 and 100

If you have any questions Join our Support Server
ALL COPYRIGHTS ARE RESERVED TO DISCORD-RC

Keywords