1.0.0 • Published 3 years ago

mxpack v1.0.0

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

Welcome to Mx package! 🎉

What does Mx package do?

We have different types of functions created for you and your bot!

Installation

npm i mxpackage

Thanks for installing!

Replace Command 📝

const mx = require('mxpack')

let regex = new RegExp(/hi/gi)
let str = "Hello! how are you?. hi hi hi"

message.channel.send(mx.replace(str,regex,"hello")) // console.log(mx.replace(str, regex, "hello"))

![https://imgur.com/a/8zJ7eZf]
![https://imgur.com/yuxld13]

// this function replaces the "hi" words with "Hello"

Calculate command ➗

const mx = require('mxpack')
if(!num1) return message.reply("Please specify a number!")
if(!num2) return message.reply("Please specify another number!")

message.channel.send(mx.calculate(num1 "sum" num2)) // sums are [+, *, -, /]

![https://imgur.com/cXtSkQ7]
![https://imgur.com/y5iLAlq]

Contact ℹ

If you want to contact us please join our: - Discord