zio-utils.js
v1.0.1
Published
A basic but helpful npm package!
Downloads
9
Readme
zio-utils.js
This package is to help with basic things and mainly made to assist my bot called Zio.
Installing the package:
npm i zio-utils.js
Examples & How to use this package
Check if a value is a number will return either true or false
const Discord = require("discord.js")
const zioutils = require("zio-utils.js")
message.channel.send(zioutils.isNumber(10))
Check if something is an array:
const Discord = require("discord.js")
const zioutils = require("zio-utils.js")
message.channel.send(zioutils.isArray(<thinghere>))
Give a random number:
const Discord = require("discord.js")
const zioutils = require("zio-utils.js")
message.channel.send(zioutils.randomNumber(10, 100))
Capitalise a message:
const Discord = require("discord.js")
const zioutils = require("zio-utils.js")
message.channel.send(zioutils.capitalise(`put something here`))
Emojify a message:
const Discord = require("discord.js")
const zioutils = require("zio-utils.js")
message.channel.send(zioutils.emojify(`This package is amazing`))
Links:
- Discord Server - click here