ℹ️ About
ultrax is a simple package make by UltraX, it's simply made to make your coding process faster by some functions, it's not fully released yet, only 2 function is available right now!
🔶 Support
In case you have idea's to improve the package, or maybe you found some bugs or you need help, you can contact us from our Discord Server
📥 Installation
To install ultrax package all you need is Node.js.
Then you can open your application terminal and type there:
$ npm install ultrax
➡️ Functions
Right now the package is beta, that mean it is not fully released yet.
The available functions are:
- sleep - Function to set timeouts easily
- passGen - Function to create passwords made by words and numbers randomly with specified length
- bin - This is a way to bin a code.
sleep
sleep is a simple function, where is make it easier and faster to make a timeout in your code.
Example:
const ultrax = require('ultrax')
const sleep = ultrax.sleep
console.log('Start!')
sleep(5000)
console.log('5 Seconds passed')
passGen
this is a simple function that can generate passwords using letters and numbers and the password length is custom so you can change it to any length you want!
Example:
const ultrax = require('ultrax')
const passGen = ultrax.passGen
console.log(passGen(6))
Bin
This is a way to bin a code.
const ultrax = require('ultrax')
if (!args.join(' ')) return message.channel.send('What do you want to bin?');
else {
const bin = await ultrax.bin(args.join(' '));
message.channel.send('Here i binned the code ' + bin)
}
Invite Logger Event
This event is for logging invite uses. This is same as guildMemberAdd
event but this is custom event which has invite and inviter in it.
const ultrax = require("ultrax")
ultrax.inviteLogger(client)
client.on('inviteJoin', (member, invite, inviter) => {
console.log(`${member.user.tag} joined using invite code ${invite.code} from ${inviter.tag}. Invite was used ${invite.uses} times since its creation.`)
});