1.0.1 • Published 4 years ago

zio-utils.js v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

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:

Note: These are examples without a command handler. You can change the values to whatever you would like.