Socket
Socket
Sign inDemoInstall

giftix

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

giftix - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

4

package.json

@@ -7,3 +7,3 @@ {

"deprecated": false,
"description": "Giftix | Event Handler",
"description": "Event Handler | By creating advanced giveaways with Giftix, you can improve your social media accounts and gain organic lift!",
"keywords": [

@@ -17,3 +17,3 @@ "giftix",

"name": "giftix",
"version": "1.0.0"
"version": "2.0.0"
}
# Giftix | Event Handler
## Installation
- `npm install giftix --save` or `yarn add giftix`
```js
const Giftix = require("giftix");

@@ -8,4 +13,8 @@

intents: [
"BOOST",
"UNBOOST"
"BOOST",
"UNBOOST",
"GIVEAWAY_JOIN",
"GIVEAWAY_FINISH",
"GIVEAWAY_REROLL",
"GIVEAWAY_CREATE",
] // Join our Discord server to intents list and event names

@@ -26,2 +35,19 @@ });

});
giftixClient.on("giveawayJoin", ({ user, giveaway }) => {
console.log(`${user.username} joined the ${giveaway.title} giveaway.`);
});
giftixClient.on("giveawayFinish", ({ giveaway, winners }) => {
console.log(`${giveaway.title} has been ended. Winners: ${winners.map(_w => _w.id).join(",")}`);
});
giftixClient.on("giveawayReroll", ({ giveaway, winners }) => {
console.log(`${giveaway.title} has been rerolled. New Winners: ${winners.map(_w => _w.id).join(",")}`);
});
giftixClient.on("giveawayDelete", giveaway => {
console.log(`${giveaway.title} has been deleted.`);
});
```
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