diff --git a/twitch/customAlerts.js b/twitch/customAlerts.js index 7320f06..c87d674 100644 --- a/twitch/customAlerts.js +++ b/twitch/customAlerts.js @@ -72,11 +72,11 @@ if (!action) { $.say($.whisperPrefix(sender) + $.lang.get('calert.help', ' Use "!calert [follow | subsribe | donation] user" to trigger alert.')); } else if (action.equalsIgnoreCase('follow')) { - alert(args[1].toUpperCase(), "NEW FOLLOWER", "follow"); + sendData('follow',{ 'user': args[1]}); } else if (action.equalsIgnoreCase('subscribe')) { - alert(args[1].toUpperCase(), "NEW SUBSCRIBER", "subscribe"); + sendData('subscribe',{ 'user': args[1]}); } else if (action.equalsIgnoreCase('donation')) { - alert(args[1].toUpperCase(), "NEW DONATION", "donation"); + sendData('bits',{ 'user': args[1], amount: args[2]}); } else { $.say($.whisperPrefix(sender) + $.lang.get('calert.help', ' Use "!calert [follow | subsribe | donation] user" to trigger alert.')); }