Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ultrax

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ultrax - npm Package Compare versions

Comparing version 1.1.3 to 1.2.1

ExampleBot/commands/general/eval.js

28

package.json
{
"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) => {

```
-----
-----
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc