šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

phantombot-node-connector

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

phantombot-node-connector

A node connector for PhantomBot

1.0.2
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
Ā 
Created
Source

Node Phantombot Connector

This is a NodeJS Connector for Phantombot, made to immitate (mostly) their own PHP Connector.

Installation

###Prerequisites:###

  • Node.js ###Required Information:###
  • Bot Address: The IP address of your bot, if you've installed PhantomBot locally this will be localhost.
  • Bot Name: The Twitch username of the account your bot is using.
  • Bot Oauth Token: This will be in a file called botlogin.txt, within the root of the folder you installed PhantomBot in.

###Installation:###

npm install phantombot-node-connector

###Usage:###

#Adding the Connector

var phantombot = require('phantombot-node-connector');

#Setting Options

phantombot.options = {
  'host': 'localhost', // Server where bot is hosted
  'port': 25000 // Port where bot is hosted
  'oauth': 'oauth' // The oauth code excluding the "oauth:" bit.
}

#Get from inistore

  phantombot.getTable('points', function(data) { // Replace points with the file you need
    console.log(data);
  });

#Get from Logs

  phantombot.getLogFile('chat/date.txt', function(data) {
    console.log(data);
  });

#Get from Addons

  phantombot.getAddonFile('followHandler/latestFollower.txt', function(data) {
    console.log(data);
  });

#Get from Web Folder

  phantombot.getWebFile('style.css', function(data) {
    console.log(data);
  });

Return Data

Inistore request

[{variable: val, value: val2}]

Normal request

[{line: val}]

Keywords

node

FAQs

Package last updated on 27 Feb 2016

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