A manual alert sender. Listen to enable an alerts bundle to be tested by the user easily.
This is a NodeCG 0.9 Bundle.
{
"username":"user",
"ts":<Unix timestamp>,
"type":"follow"
}
{
"username":"user",
"ts":<Unix timestamp>,
"type":"subscription",
"months":2
}
{
"username":"user",
"ts":<Unix timestamp>,
"type":"host"
}
{
"username":"user",
"ts":<Unix timestamp>,
"type":"tip",
"amount":20,
"currencySymbol":"$"
}
nodecg.listenFor('follow','prime-manual-alerts', data => {
console.log(data);
});