From 9a643238d874176000ea98a7e6fab7741795f79e Mon Sep 17 00:00:00 2001 From: choelzl Date: Thu, 24 Feb 2022 02:28:55 +0100 Subject: [PATCH] WIP --- twitch/customAlerts.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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.')); }