✨ VOIDER
A simple api to configure and enhance the ways on coding your discord bot or other ways to code your own. Compatible with discord.js v12 but it should also work on older versions. Variety of different usages for this api.
📝 Table of contents
Installation
First install Node.js. Then:
$ npm install voider
🛠 Usages (Click on it for more info on how to use it)
✈ Importing
const voider = require("voider");
import voider from "voider";
🙋♂️ Support
Feel free to join the support discord server -> https://discord.gg/S8sQkrzTyN
🔧 Usages
Logger
const members = message.guild.memberCount()
logger(members)
logger("Hello World!")
});
chatBot
With a command
const { chatBot } = require("voider")
chatBot(message, args.join(" "))
}
}
Using a event
const { chatBot } = require("voider")
const client = require("./index.js")
client.on("message", async(message) => {
if(message.channel.id === "channel id here") {
chatBot(message, message.content)
}
})
Ordinal Numbers
const { ordinal, logger } = require("voider")
logger(ordinal(message.guild.memberCount))
const { ordinal, logger } = require("voider")
logger(ordinal(135))
Ordinal Letters
const { ordinal_letters, logger } = require("voider")
logger(ordinal_letters(130))
Reverse
const { reverse, logger } = require("voider")
logger(reverse("Hello World"))
randomNumber
const { randomNumber, logger } = require("voider")
logger(randomNumber(500, 200))
Random String
const voider = require("voider")
let someRandomString = voider.randomString(["Hello", "World!", "Nice"])
voider.logger(someRandomString)