Comparing version 1.1.3 to 1.1.4
@@ -5,5 +5,7 @@ const sleep = require('./functions/sleep'), | ||
inviteLogger = require("./functions/invite-logger"), | ||
_checkUpdate = require("./functions/checkUpdates") | ||
_checkUpdate = require("./functions/checkUpdates"), | ||
ButtonPaginatoir = require("./functions/button-embed-reactor") | ||
_checkUpdate() | ||
@@ -14,3 +16,4 @@ module.exports = { | ||
bin, | ||
inviteLogger | ||
inviteLogger, | ||
ButtonPaginatoir | ||
}; |
{ | ||
"name": "ultrax", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "This package is used to make stuff easier by using simple functions, its not fully released yet!", | ||
@@ -12,4 +12,5 @@ "main": "index.js", | ||
"dependencies": { | ||
"discord.js": "^12.5.3", | ||
"node-fetch": "^2.6.1" | ||
} | ||
} |
# ℹ️ About | ||
ultrax is a simple package make by [UltraX](https://youtube.com/UltraX1), 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! | ||
ultrax is a simple package make by [UltraX](https://youtube.com/UltraX1), it's simply made to make your coding process faster by some functions | ||
@@ -27,3 +27,2 @@ <div align="center"> | ||
## ➡️ Functions | ||
Right now the package is beta, that mean it is not fully released yet. | ||
@@ -38,2 +37,8 @@ The available functions are: | ||
## ➡️ More usages | ||
There is currently only an event called [`inviteJoin`](https://www.npmjs.com/package/ultrax#invite-logger-event) in the package which allows you to get some informations about the invite such as the inviter and how many times it got used. | ||
---- | ||
## sleep | ||
@@ -81,6 +86,13 @@ sleep is a simple function, where is make it easier and faster to make a timeout in your code. | ||
```js | ||
// Defining the package | ||
const ultrax = require('ultrax') | ||
// if it's empty it returns a message saying "what do you want to bin?" | ||
if (!args.join(' ')) return message.channel.send('What do you want to bin?'); | ||
else { | ||
// else if everything works fine, we will make a new varible called "bin" | ||
// it will be used to bin the args.join(' ') also known as the message.content | ||
const bin = await ultrax.bin(args.join(' ')); | ||
// then here we will send the results! | ||
message.channel.send('Here i binned the code ' + bin) | ||
@@ -92,6 +104,15 @@ } | ||
```js | ||
// Defining the package | ||
const ultrax = require("ultrax") | ||
//defining discord | ||
const discord = require('discord.js') | ||
// new discord client | ||
const client = new discord.Client() | ||
// To Get The new event working we need to initilize it by: | ||
ultrax.inviteLogger(client) | ||
ultrax.inviteLogger(client) // put here your discord client | ||
// without above code event won't trigger. | ||
// now below event will work | ||
@@ -102,2 +123,2 @@ client.on('inviteJoin', (member, invite, inviter) => { | ||
``` | ||
----- | ||
----- |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13794
10
233
120
2
+ Addeddiscord.js@^12.5.3
+ Added@discordjs/collection@0.1.6(transitive)
+ Added@discordjs/form-data@3.0.1(transitive)
+ Addedabort-controller@3.0.0(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addeddiscord.js@12.5.3(transitive)
+ Addedevent-target-shim@5.0.1(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedprism-media@1.3.5(transitive)
+ Addedsetimmediate@1.0.5(transitive)
+ Addedtweetnacl@1.0.3(transitive)
+ Addedws@7.5.10(transitive)