Skip to content
This repository was archived by the owner on Apr 11, 2023. It is now read-only.

Latest commit

 

History

History
57 lines (45 loc) · 676 Bytes

README.md

File metadata and controls

57 lines (45 loc) · 676 Bytes

prime-manual-alerts

A manual alert sender. Listen to enable an alerts bundle to be tested by the user easily.

This is a NodeCG 0.9 Bundle.

Events

FOLLOW

{
	"username":"user",
	"ts":<Unix timestamp>,
	"type":"follow"
}

SUBSCRIPTION

{
	"username":"user",
	"ts":<Unix timestamp>,
	"type":"subscription",
	"months":2
}

HOST

{
	"username":"user",
	"ts":<Unix timestamp>,
	"type":"host"
}

TIP

{
	"username":"user",
	"ts":<Unix timestamp>,
	"type":"tip",
	"amount":20,
	"currencySymbol":"$"
}

Example Use

nodecg.listenFor('follow','prime-manual-alerts', data => {
	console.log(data);
});