1.0.0 • Published 3 years ago
mxpackg v1.0.0
Welcome to Mx package! 🎉
What does Mx package do?
We have different types of functions created for you and your bot!
Installation
npm i mxpackg
Thanks for installing!
replace
const mx = require('mxpackg')
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"
calculates
list of commands
| commands | howto |
|----------|------------------------|
| add | mx.add(num1, "-", num2) |
| subtract | mx.subtract(num1, "-", num2) |
| divide | mx.divide(num1, "-", num2) |
| multipy | mx.multiply(num1, "-", num2) |
advice
const mx = require('mxpackg')
mx.advice()
message.channel.send(mx.advice())
randomnum
const mx = require('mxpackg')
//mx.randomnum()
message.channel.send(`Random number: ${mx.randomnum()}`)
clearconsole
const mx = require('mxpackg')
mx.clearconsole(amount) //amount e.g [1, 2, 3] etc
clear
const mx = require('mxpackg')
mx.clear(amount) //amount (1 to 100)
docs
const mx = require('mxpackg')
//mx.docs(src) //eg. client.user
message.channel.send(`Docs`, mx.docs())
ban
const mx = require('mxpackg')
// const user = message.mentions.users.first()
mx.ban(user)
kick
const mx = require('mxpackg')
//const user = message.mentions.users.first()
mx.kick(user)
cap
const mx = require('mxpackg')
//mx.cap()
message.channel.send(`I think: `, mx.cap()) // or mx.cap()
randompass
const mx = require('mxpackg')
//mx.randompass()
message.channel.send(`random pass: ${mx.randompass()}`)
getjoke
const mx = require('mxpackg')
//mx.getjoke()
message.channel.send('Random joke', mx.getjoke())
chatbot
const mx = require('mxpackg')
const message = args.join(" ")
mx.chatbot(message)
contact
If you want to contact us please join our: Discord Server
1.0.0
3 years ago