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

lctv-bot-api-triggers-plugin

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lctv-bot-api-triggers-plugin

API Triggers plugin for the LCTV Bot

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

lctv-bot-vote-api-triggers

API Triggers plugin for the LCTV Bot

Setup

Create a settings.js file in the plugin's folder. Use the following structure:

module.exports = {
	"triggers": [{
		regex: /ohseemedia/,
		status: 'moderator',
		url: 'http://owenconti.com/api-triggers/trigger-test.php',
		method: 'GET',
		params: '?testare=fake'
	}, {
		regex: /tester/,
		status: 'moderator',
		url: 'http://owenconti.com/api-triggers/trigger-test.php',
		method: 'GET',
		params: function( chat, stanza ) {
			return '?user=' + stanza.user.username + '&room=tester'
		}
	}]
};

You can add as many triggers as you want in the triggers array.

Usage

Once your triggers are setup, any message in the chat matching the trigger's regex, will make a request to the trigger's url with the params attached.

FAQs

Package last updated on 03 Nov 2015

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