New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

votifier-server

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

votifier-server

votifier-server is a Node.js module that emulates a Bukkit Votifier server.

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

npm version npm downloads dependencies Status license:mit

votifier-server

votifier-server is a Node.js module that emulates a Bukkit Votifier server.

Documentation

Constructor(privateKey[, port])

  • privateKey - Private key of the public key used on voting websites.
  • port - Default 8192 if omitted.

Events

vote

  • username - Minecraft username used for voting
  • server - Voting website used
  • ip - Voters IP address
  • date - Date of vote

Emitted when you successfully received a Votifier vote.

error

  • err - An Error object

Emitted when an error occurs. If this event isn't handled, the program will crash.

Example:

let VotifierServer = require('votifier-server');

let votifier = new VotifierServer('MIIEpAIBAAKCAQEAyOewHlkQKClCGBcrgI26VXoamOj9ju6NAZixelkzDZiPlP1X\n' +
    'TUqfqnI72HAcEIzpe9GV1V2yB0Ystw3JJda8I9+TKmTFmYdgPrA0JZmdHMUmtUT9\n' +
    'WcfeEXNa3LQq7YTXjnzn+VcUDT/+qdrvTiscLm6cyu0dMy5dkb2qp4mV5MBZBoJ+\n' +
    'rlnB0k4BAYohA5UcRzXGBKe/mI0tXxA1SZqBTbUWotTT7m30Xe7VlxDwcXaKsy5F\n' +
    '8MpAehVtr048NQ49O/Klg0D/YYZ+G1TA66fBcMiAUl6SfyI7ckUotE0KPNBlqRgR\n' +
    'IHyWasMbkPULicYjHne9jiORBKnLqy7CVTR/awIDAQABAoIBAGEf+PnC7terkoNY\n' +
    '+DPu0I0wOZmA0cv+sXZ7Hhna8554CbnqfAEmuWfKT/pDwJ2TsfClEv2SjVWM7GMW\n' +
    'rA658Dybgmb1Tr35P2MvBhbDW7wj56Gsl5qG0Gm5Tczy4Onw1dDRu8fD/DKnpHLz\n' +
    'H8u3dalQ2kYUOZ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zGQ6pKgWVbaiSjwSgiZCI7giICNEtmwC22v5EK7DGFNhqDPljRbu8V\n' +
    'Sz1qo9K+KAzwvbu13jnMH3drkfPiOsKea0vrV3ZG9JMoIRRUSkQE+Q==');

votifier.on('vote', function (username, server, ip, date) {
    console.log(username);
    console.log(server);
    console.log(ip);
    console.log(date);
});

votifier.on('error', function (err) {
    console.error(err);
});

FAQs

Package last updated on 11 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts