nidhishpackage
Version:
This is a fun package for [Discord](https://discord.com) The library is [Discord.js](https://discord.js.org)
253 lines (211 loc) • 6.66 kB
Markdown
# Package made by Nidhish#1295 & DWORD#0001
This is a fun package for [Discord](https://discord.com)
The library is [Discord.js](https://discord.js.org)
Having any trouble? Join this [server](https://discord.gg/ZMXd5MvAXW)
```
npm i nidhishpackage
```
*Some content is used from srod-v2, i had permission to do this.
### Table Of Contents
- [Calculator](#calculator) <br>
- [Embed Pages](#embedpages) <br>
- [Random String](#randomstring) <br>
- [Chat Bot](#chatbot) <br>
- [Inline Replies](#inlinereplies) <br>
- [TicTacToe](#tictactoe)
- [Would You Rather](#wouldyourather)
- [Connect Four](#connectfour)
- [Snake Game](#snakegame)
- [Guess The Number](#guessthenumber)
- [Emojify](#emojify)
- [Owoify](#owoify)
- [Reddit Memes](#memes)
- [Fact](#fact)
- [Joke](#joke)
- [Quotes](#quotes)
- [Anime Quotes](#animequotes)
- [Animals](#animals)
- [NSFW](#nsfw)
- [SFW](#sfw)
# Utilities
### EmbedPages
```js
const { MessageEmbed } = require("discord.js");
const { embedpages } = require("nidhishpackage");
const embed1 = new MessageEmbed()
.setTitle(`test`)
const embed2 = new MessageEmbed()
.setTitle(`test2`)
const pages = [
embed1,
embed2
]
const embedPages = new embedpages({
pages: pages,
channel: message.channel,
});
embedPages.createPages();
```
### RandomString
```js
const nidhish = require("nidhishpackage");
console.log(nidhish.password(7))
```
### ChatBot
```js
const { chatbot } = require('nidhishpackage')
chatbot(message);
```
### InlineReplies
Put this in your index.js
```js
const Discord = require('discord.js')
require('nidhishpackage')
const client = new Discord.Client()
```
Now to use it
```js
if(message.content.startsWith('!help')){
return message.noMentionReply('The list of my commands') // This is so it won't mention the person
return message.mentionReply('The list of my commands') // This is so it will mention the person
}
```
# Games
### TicTacToe
```js
const { tictactoe } = require('nidhishpackage')
let user = message.mentions.members.first()
if(!user) return message.channel.send('please mention someone to play against')
let game = new tictactoe({
message: message,
player_two: user,
});
```
### ConnectFour
```js
const nidhish = require('nidhishpackage')
const ConnectFour = new nidhish.connectfour()
ConnectFour.startGame(message)
```
### SnakeGame
```js
const nidhish = require('nidhishpackage')
const SnakeGame = new nidhish.SnakeGame()
SnakeGame.startGame(message)
```
### GuessTheNumber
```js
const nidhish = require('nidhishpackage')
const guessthenumber = new nidhish.guessthenumber()
guessthenumber.startGame(message)
```
# Fun
### Emojify
```js
const nidhish = require(`nidhishpackage`)
const emojified = await nidhish.emojify('Random Text Here');
message.channel.send(emojified);
```
### Owoify
```js
const nidhish = require(`nidhishpackage`)
const owoified = await nidhish.owoify('Random Text Here');
message.channel.send(owoified); //owoify text
```
### Memes
```js
const nidhish = require(`nidhishpackage`)
const Meme = await nidhish.getmeme();
return message.channel.send(Meme);
```
### Quotes
```js
const nidhish = require(`nidhishpackage`)
const quote = await nidhish.generateQuote({ Color: "Color Here"})
return message.channel.send(quote);
```
### AnimeQuotes
```js
const nidhish = require(`nidhishpackage`)
const quote = await nidhish.generateAnimeQuote({ Color: "Color Here"})
return message.channel.send(quote);
```
### Fact
```js
const nidhish = require(`nidhishpackage`)
const Data = await nidhish.getfact({ Color: "Color Here" });
return message.channel.send(Data);
```
### Joke
```js
const nidhish = require(`nidhishpackage`)
const Data = await nidhish.getjoke({ Color: "Color Here" });
return message.channel.send(Data);
```
# Animals
### Koala And Redpanda
This wasn't in the api I used but I really liked them so below if how you get redpanda or koala.
```js
const nidhish = require("nidhishpackage");
const randomImage = new nidhish({
type: 'embed'
});
await randomImage.Koala(message) // change Koala to Redpanda to use redpanda
```
### Below is an example of one animal, you can change it to the list below the example for a different one.
```js
const nidhish = require(`nidhishpackage`)
const animal = await nidhish.animalimage({ Animal: "animal here", Color: "hex code here" });
return message.channel.send(animal); //all available animals are in the list below
```
### List of all animals
| Animals | Description |
|----------|------------------------|
| Cat | Sends a cat image |
| Duck | Sends a duck image |
| Dog | Sends a dog image |
| Llama | Sends a llama image |
| Alpaca | Sends an alpaca image |
| Seal | Sends a seal image |
| Panda | Sends a panda image |
| Bird | Sends a bird image |
| Fox | Sends a fox image |
| Wolf | Sends a wolf image |
| Camel | Sends a camel image |
| Lizard | Sends a lizard image |
<br>
### NSFW
```js
const nidhish = require(`nidhishpackage`)
const Data = await nidhish.gethpussy({ Color: "Color Here" });
return message.channel.send(Data);
```
### List of all NSFW content
| NSFW | Description |
|------------------|--------------------------------|
| gethpussy | Sends a Hentai Pussy img/gif |
| gethboobs | Sends a Hentai Boobs img/gif |
| getRandomHGif | Sends a RandomHentai img/gif |
| getherok | Sends a Hentai Erok img/gif |
| gethfeetg | Sends a Hentai Feet img/gif |
| gethlesbian | Sends a Hentai lesbian img/gif |
| gethbj | Sends a Hentai Blowjob img |
| getbjgif | Sends a Hentai Blowjob gif |
| gethtrap | Sends a Hentai Trap img/gif |
<br>
## SFW
```js
const nidhish = require(`nidhishpackage`)
const Data = await nidhish.getneko({ Color: "Color Here" });
return message.channel.send(Data);
```
### List of all SFW content
| sfw | Description |
|------------------|--------------------------------|
| getneko | Sends an Neko image |
| getnekogif | Sends a Neko gif |
| getRandomHGif | Sends a RandomHentai image/gif |
| geterok | Sends a Erok image/gif |
| getfeetg | Sends an Feet image/gif |
| getwallpaper | Sends a Random Wallpaper |
| getfoxgirl | Sends a Random Foxgirl img |