0.4.1 • Published 3 years ago
monmon v0.4.1
What is MonMon Package
A cool package made for Discord.js
Features
- 🎉 Easy to use
- 🧑 Beginner friendly
- ✨ Simple
- and much more!
Table Of Content
- Installation
- Random Joke
- Random Quote
- Play Store
- iTunes Store
- NPM Search
- Randomize Numbers
- Randomize Array
- Random Case
- Random HexColor
- Flip Words
- Reverse Text
- Sudo
Installation
$ npm i monmon
RandomStuff
RandomJoke
const { random } = require('monmon')
const monmon = new random()
monmon.joke(message, {
embedTitle: 'embed title here',
embedColor: 'hex here',
embedFooter: 'embed footer here'
})
RandomQuote
const { random } = require('monmon')
const monmon = new random()
monmon.quote(message, {
embedTitle: 'embed title here',
embedColor: 'hex here',
embedFooter: 'embed footer here'
})
Search
Play-Store-Search
const monmon = require('monmon')
monmon.playstore(message, args, {
embedTitle: 'embed title here',
embedColor: 'hex here'
})
iTunes-Search
const monmon = require('monmon')
monmon.iTunes(message, args, {
embedTitle: 'embed title here',
embedColor: 'hex here'
})
NPM-Search
const monmon = require('monmon')
monmon.npm(message, args, {
embedTitle: 'embed title here',
embedColor: 'hex here'
})
Utility
RandomizeNumbers
const { randomizeNumber } = require('monmon');
const monmon = randomizeNumber({min: 1,max: 10});
console.log(monmon)
/*
Random number between 1 and 10
*/
RandomizeArray
const { randomizeArray } = require('monmon');
const test = ["hi","hello","bye" , "goodbye"]
const monmon = randomizeArray({array: test});
console.log(monmon)
/*
Random string from test array
*/
RandomCase
const { randomCase } = require('monmon');
const monmon = randomCase({string: "hello there"});
console.log(monmon)
/*
output : heLlo TheRe
*/
RandomHexColor
const { randomHexColor } = require('monmon');
const monmon = randomHexColor();
console.log(monmon)
/*
Random hex color
*/
FlipWords
const { flip } = require('monmon');
const monmon = flip({word: "hello there"});
console.log(monmon)
/*
output : ǝɹǝɥʇ ollǝɥ
*/
ReverseText
const { reverseText } = require('monmon');
const monmon = reverseText({text: "Good Morning"});
console.log(monmon)
/*
output : gninroM dooG
*/
Sudo
const { sudo } = require('monmon');
const user = message.mentions.members.first();
const args = args.slice(1).join(" ");
const monmon = sudo(message, args, {
member: user
});