From 04fefb2b8183a1c9a18d6b0fb02c28320d6d91fe Mon Sep 17 00:00:00 2001 From: Earl Duque <31702109+earlduque@users.noreply.github.com> Date: Tue, 21 Nov 2023 12:55:18 -0800 Subject: [PATCH] removing as unnecessary --- Parsers/Release Utah.js | 20 -------------------- Parsers/Release Vancouver.js | 21 --------------------- Parsers/Release Washington.js | 21 --------------------- 3 files changed, 62 deletions(-) delete mode 100644 Parsers/Release Utah.js delete mode 100644 Parsers/Release Vancouver.js delete mode 100644 Parsers/Release Washington.js diff --git a/Parsers/Release Utah.js b/Parsers/Release Utah.js deleted file mode 100644 index 5693c2b4..00000000 --- a/Parsers/Release Utah.js +++ /dev/null @@ -1,20 +0,0 @@ -/* -activation_example: Please check the utah channel -regex:(^|[^:\/\w])utah(?![\/\w]) -flags:gmi -order:200 -stop_processing:false -*/ -var release = 'utah'; //to make the rest of this code re-usable across release reacts just making this a variable - -//check to see if we have sent this react to this specific user in this channel in the last 12 hours -var count = new GlideAggregate('x_snc_slackerbot_chat'); -count.addQuery('sys_created_on', '>', gs.hoursAgoStart(12)); -count.addQuery('text', 'CONTAINS', release); -count.addQuery('channel', current.channel); -count.addQuery('user', current.user); -count.query(); - -if (count.getRowCount() < 2) { - new x_snc_slackerbot.Slacker().send_reaction(current, release); -} diff --git a/Parsers/Release Vancouver.js b/Parsers/Release Vancouver.js deleted file mode 100644 index 82ea080f..00000000 --- a/Parsers/Release Vancouver.js +++ /dev/null @@ -1,21 +0,0 @@ -/* -activation_example:vancouver -regex:(^|[^:\/\w])vancouver(?![\/\w]) -flags:gmi -order:200 -stop_processing:false -*/ - -var release = 'vancouver'; //to make the rest of this code re-usable across release reacts just making this a variable - -//check to see if we have sent this react to this specific user in this channel in the last 12 hours -var count = new GlideAggregate('x_snc_slackerbot_chat'); -count.addQuery('sys_created_on', '>', gs.hoursAgoStart(12)); -count.addQuery('text', 'CONTAINS', release); -count.addQuery('channel', current.channel); -count.addQuery('user', current.user); -count.query(); - -if (count.getRowCount() < 2) { - new x_snc_slackerbot.Slacker().send_reaction(current, release); -} diff --git a/Parsers/Release Washington.js b/Parsers/Release Washington.js deleted file mode 100644 index 1f64cf8f..00000000 --- a/Parsers/Release Washington.js +++ /dev/null @@ -1,21 +0,0 @@ -/* -activation_example:washington -regex:(^|[^:\/\w])washington(?![\/\w]) -flags:gmi -order:200 -stop_processing:false -*/ - -var release = 'washington'; //to make the rest of this code re-usable across release reacts just making this a variable - -//check to see if we have sent this react to this specific user in this channel in the last 12 hours -var count = new GlideAggregate('x_snc_slackerbot_chat'); -count.addQuery('sys_created_on', '>', gs.hoursAgoStart(12)); -count.addQuery('text', 'CONTAINS', release); -count.addQuery('channel', current.channel); -count.addQuery('user', current.user); -count.query(); - -if (count.getRowCount() < 2) { - new x_snc_slackerbot.Slacker().send_reaction(current, release); -}