Comparing version 1.1.3 to 1.2.1
{ | ||
"name": "ultrax", | ||
"version": "1.1.3", | ||
"description": "This package is used to make stuff easier by using simple functions, its not fully released yet!", | ||
"version": "1.2.1", | ||
"description": "This package is used to make stuff easier by using simple functions and more!", | ||
"main": "index.js", | ||
"keywords": [ | ||
"discord.js", | ||
"ultrax", | ||
"functions", | ||
"events", | ||
"invite-logger", | ||
"invite", | ||
"bin", | ||
"src", | ||
"discordjs" | ||
], | ||
"scripts": { | ||
"test": "cd ExampleBot && npm i ../ && node ." | ||
}, | ||
"author": "UltraX#9586", | ||
"license": "ISC", | ||
"author": "UltraX#0001", | ||
"license": "Apache-2.0", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/KarimX32/UltraX-Package.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/KarimX32/UltraX-Package/issues" | ||
}, | ||
"dependencies": { | ||
@@ -12,0 +32,0 @@ "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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
20657
16
402
0
120
0
1
2