# discord-rc

> Are you very lazy to code, or you don't know how to code discord bots? Discord-ReadyCodes will help you do codes for Discord.js in just a line!

Latest version **2.9.4** (published 2022-05-20) · GNU license · 0 weekly downloads

## Install

```sh
npm install discord-rc
pnpm add discord-rc
yarn add discord-rc
bun add discord-rc
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.9.4 |
| Published | 2022-05-20 |
| First published | 2020-11-14 |
| Weekly downloads | 0 |
| License | GNU |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 53.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Discord: iiCrIzPy#2700 |
| Maintainers | medyassine |
| Keywords | discord.js, discord-rc, discord-API, Discord bots, free discord codes, Discord, Discord ready codes |

## Links

- npm: https://www.npmjs.com/package/discord-rc
- npm.io page: https://npm.io/package/discord-rc

## Dependencies (1)

- [discord.js](https://npm.io/package/discord.js.md) ^12.5.1

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 2.9.4 (latest) — 2022-05-20
- 2.9.3 — 2021-11-25
- 2.9.2 — 2021-11-21
- 2.9.1 — 2021-11-20
- 2.8.5 — 2021-01-15
- 2.8.3 — 2021-01-13
- 2.7.0 — 2021-01-08
- 2.6.9 — 2021-01-08
- 2.6.8 — 2021-01-08
- 1.9.4 — 2020-12-01
- 1.9.3 — 2020-12-01
- 1.9.2 — 2020-12-01
- 1.8.9 — 2020-11-30
- 0.4.2 — 2020-11-19
- 0.3.6 — 2020-11-17
- … 2 more at https://npm.io/package/discord-rc/versions

## README

![drcpic](https://media.discordapp.net/attachments/650457236010958918/783269862201360404/Discord-RC_with_NEW_UPDATE_BADGE.png)
 <p>
    <a href="https://nodei.co/npm/discord-rc/"><img src="https://nodei.co/npm/discord-rc.png?downloads=true&stars=true" alt="npm installnfo" /></a>
  </p>
  
 <p>
    <a href="https://www.npmjs.com/package/discord-rc"><img src="https://img.shields.io/npm/v/discord-rc.svg?style=for-the-badge" alt="NPM version" /></a>
    <a href="https://www.npmjs.com/package/discord-rc"><img src="https://img.shields.io/npm/dt/discord-rc.svg?style=for-the-badge" alt="NPM downloads" /></a>
    </p>
  
# Discord Ready Codes
Are you very lazy to code, or you don't know how to code discord bots?<br>
Discord Ready Codes will give you free codes for Discord.js with just a line!
## [Join Support Server](https://discord.gg/dnjkXNpKZh)
<p>
<a href="https://discord.gg/dnjkXNpKZh"><img src="https://img.shields.io/discord/766717626625687553?style=for-the-badge" alt="Discord Server" /></a>
</p>
<strong>How-to install:</strong>
<a href="https://www.npmjs.com/package/discord-rc"><img src="https://nodei.co/npm/discord-rc.png?mini=true"></a>

**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.*
```js
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](https://media.discordapp.net/attachments/774020331912167424/796045846021668864/unknown.png)
> <strong>Commands</strong>
 ```js
//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](https://media.discordapp.net/attachments/774020331912167424/796046947873587230/unknown.png)

## **Available Commands:**

> Games
- <strong>8ball `-` 8ball Game. `NO CUSTOMIZATION`</strong>
- <strong>howgay `-` how gay Game. `NO CUSTOMIZATION`</strong>
> Moderation
- <strong>ban `-` Ban command. `CUSTOMIZATION AVAILABLE`</strong>
- <strong>kick `-` Kick command. `CUSTOMIZATION AVAILABLE`</strong>
- <strong>lock `-` Deny the permission SEND_MESSAGES for everyone in a channel. `CUSTOMIZATION AVAILABLE`</strong>
- <strong>unlock `-` Allow the permission SEND_MESSAGES for everyone in a channel. `CUSTOMIZATION AVAILABLE`</strong>
### 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:**
```js
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
```

<hr>
<strong>If you have any questions</strong>
Join our <a href="https://discord.gg/dnjkXNpKZh">Support Server</a>
<hr>
<strong>ALL COPYRIGHTS ARE RESERVED TO DISCORD-RC™️</strong>

---
_Source: https://npm.io/package/discord-rc · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
