discord-simple-multipurpose
v0.0.4
Published
discord-simple-multipurpose is an simple multipurpose package and easy to use
Downloads
6
Maintainers
Readme
Discord-simple-multipurpose
discord-simple-multipurpose is an simple multipurpose package and easy to use
Installing the package ⬇️
npm i discord-simple-multipurpose
Commands 📣
- Advice
- Joke
- Lyrics
- Meme
- Quote
- Neko
- NekoGif
- Waifu
- owoify
- emojify
- reverse
- shuffle
- DogFact
- CatFact
- textToBinary
- binaryToText
- ascii
More comming soon :DDD
Example of how to use the command
const Discord = require("discord.js");
const client = new Discord.Client();
const { Multi } = require("discord-simple-multipurpose");
const something = new Multi();
client.on("ready", () => {
console.log(`Ready! Logged in as ${client.user.tag}!`)
});
client.on("message", async message => {
if (message.content.startsWith("!neko")) {
let neko = await something.fetchNeko();
let embed = new Discord.MessageEmbed()
.setTitle("Neko!")
.setImage(neko)
.setColor("RANDOM")
message.channel.send(embed)
} else if (message.content.startsWith("!Waifu")) {
let Waifu = await something.fetchWaifu();
let embed = new Discord.MessageEmbed()
.setTitle("!Waifu")
.setImage(Waifu)
.setColor("RANDOM")
message.channel.send(embed);
}
client.login("Your token here")
});
Fetching Methods.
fetchAdvice(): Returns random advice.
let data = await something.fetchAdvice()
message.channel.send(data)
fetchJoke(): Returns random joke. Returns data.setup (Setup of the joke) and data.punchline (Punchline of the joke).
let data = await something.fetchJoke()
message.channel.send(`${data.setup}\n${data.punchline}`)
fetchLyrics(song): Returns lyrics of provided song.
let data = await something.fetchLyrics("Perfect")
message.channel.send(data)
fetchMeme(): Returns random meme. Returns data.title (meme title) and data.image (meme image).
let data = await something.fetchMeme()
message.channel.send(`${data.title}\n${data.image}`)
fetchQuote(): Returns random quote.
let data = await something.fetchQuote()
message.channel.send(data)
fetchNeko(): Returns random neko image.
let data = await something.fetchNeko()
message.channel.send(data)
fetchNekoGif(): Returns random neko gif.
let data = await something.fetchNekoGif()
message.channel.send(data)
fetchWaifu(): Returns random waifu image.
let data = await something.fetchWaifu()
message.channel.send(data)
fetchDogFact(): Returns random dog fact.
let data = await something.fetchDogFact()
message.channel.send(data)
fetchCatFact(): Returns random cat fact.
let data = await something.fetchCatFact()
message.channel.send(data)
Text-manipulation methods.
owoify(text): Returns owoified text.
let data = await something.owoify("hello friends!")
message.channel.send(data)
emojify(text): Returns emojified text.
let data = await something.emojify("something to emojify.")
message.channel.send(data)
reverse(text): Returns reversed text.
let data = await something.reverse("this will be reversed.")
message.channel.send(data)
shuffle(text): Returns shuffled text.
let data = await something.shuffle("some shuffled text.")
message.channel.send(data)
textToBinary(text): Returns provided text into binary.
let data = await something.textToBinary("binary test")
message.channel.send(data)
binaryToText(binary): Returns provided binary into text.
let data = await something.binaryToText("1100010 1101001 1101110")
message.channel.send(data)
ascii(text): Returns provided text into ascii.
let data = await something.ascii("e")
message.channel.send(data)
Constructor Methods
const { Multi } = require("discord-simple-multipurpose");
const something = new Multi();
My Discord bot
Multipurpose Bot with 500+ commands zenitsu
Note
Don't forget to install the latest version of it
Developer of the Package
Note
The Following Package uses NekoBot Api Nekobot API and Nekos.life to fetch images.