# berrybot

> An awesome and easy package

Latest version **1.4.5** (published 2021-07-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install berrybot
pnpm add berrybot
yarn add berrybot
bun add berrybot
```

## 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 | 1.4.5 |
| Published | 2021-07-02 |
| First published | 2021-07-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 15.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | The Immortal |
| Maintainers | theimmortals |
| Keywords | berry |

## Links

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

## Dependencies (1)

- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.1

## Recent versions

- 1.4.5 (latest) — 2021-07-02
- 1.3.5 — 2021-07-02

## README

A simple awesome package for your bot!
 
## Installation
```
npm i berrybot
```

## Examples
### Jokes command, no input example:
```js
const berry = require("berrybot")
const Discord = require("discord.js")
const client = new Discord.Client()


client.on("message", async message => {
if (message.content.toLowerCase() === "b!joke") {
  const joke = await berry.joke()
  message.channel.send(joke)
}
})

client.login("bot token")

```

### Biden command, 1 text input example
```js
const berry = require('berrybot')
const Discord = require('discord.js')

const text = "String"
const img = await berry.biden(text)
const image = new Discord.MessageAttachment(img, "biden.png")
message.channel.send(image)
```

###  Pooh meme command, more than one text input example
```js
const berry = require('berrybot')
const Discord = require('discord.js')

const text1 = "String"
const text2 = "String 2"
const img = await berry.pooh(text1, text2)
const image = new Discord.MessageAttachment(img, "pooh.png")
message.channel.send(image)

```

### Drip command, image input example
```js
const Discord = require("discord.js");
const berry = require('berrybot')

let user = message.mentions.users.first() || message.author
const av = user.displayAvatarURL()

const image = await berry.drip(av)

const attachment = new Discord.MessageAttachment(image, "drip.png");
message.channel.send(attachment);
```

### Color command, object output example:

```js
const berry = require("berrybot")

const color = "ffcc99"
const output = await berry.colorinfo(color)
console.log(output)
 
```
So, if you want to collect for example the rgb, you need to:

`
console.log(output.rgb)
` (gives out the rgb value of 'ffcc99' hex.)

 This method applies for Playstore, iTunes, WouldYouRather, RandomMeme and Colorinfo.


### Welcome Card

```js
const berry = require('berrybot')
const Discord = require("discord.js")
const image = await berry.welcomecard(background, avatar, text_1, text_2, text_3)
const attachment = new Discord.MessageAttachment(image, "welcomecard.png")
<Channel>.send(attachment)
```

## Endpoints
Here is the list:

 - `drake(text1, text2)`
 - `pooh(text1, text2)`
 - `ship(image1, image2)`
 - `colorify(image, color_name)`
 - `biden(text)`
 - `pikachu(text)`
 - `drip(image)`
 - `clown(image)`
 - `clown(image_url)`
 - `ad(image_url)`
 - `blur(image_url)`
 - `invert(image_url)`
 - `greyscale(image_url)`
 - `jokeoverhead(image_url)`
 - `mnm(image_url)`
 - `translate(text, to_language)`
 - `reverse(text)`
 - `alert(text)`
 - `caution(text)`
 - `mock(text)`
 - `facts(text)`
 - `encode(text)`
 - `decode(binary)`
 - `doublestruck(text)`
 - `texttomorse(text)`
 - `playstore(app_name)`
 - `itunes(song_name)`
 - `colorinfo(color_hex)`
 - `welcomecard(background, avatar, text_1, text_2, text_3)`
 - `joke()`
 - `randommeme()`
 - `_8ball()`


## Credits
Made by Dragon Prince#6969!

Join Our Discord Server! [Link](https://discord.gg/fGcVm5et94)

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