From 89ddf24e5d3ef4d2d1d91e03a33f242fbecf542b Mon Sep 17 00:00:00 2001 From: Master3395 Date: Fri, 12 Apr 2024 17:34:18 +0200 Subject: [PATCH 1/9] Add Sticker Add Sticker Edited by discord user: Exotic - bot.dev --- actions/store_message_info_MOD.js | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/actions/store_message_info_MOD.js b/actions/store_message_info_MOD.js index 063c9f26..890eedeb 100644 --- a/actions/store_message_info_MOD.js +++ b/actions/store_message_info_MOD.js @@ -48,6 +48,7 @@ module.exports = { 'Replied-to Message Channel ID', 'Replied-to Message Guild ID', 'Is Reply to Message?', + 'Message Stickers Count', // Added option for sticker count ]; return `${presets.getMessageText(data.message, data.varName)} - ${info[parseInt(data.info, 10)]}`; }, @@ -135,7 +136,8 @@ module.exports = { dataType = 'Guild ID'; break; case 27: - dataType = 'Boolean'; + case 28: // Added case for storing sticker count + dataType = 'Number'; break; default: break; @@ -190,8 +192,8 @@ module.exports = { - - + + @@ -204,11 +206,12 @@ module.exports = { - - - - - + + + + + + @@ -324,6 +327,9 @@ module.exports = { case 27: result = msg.type === 'REPLY' && msg.reference?.messageId !== undefined; break; + case 28: // Added case for storing sticker count + result = msg.stickers ? msg.stickers.size : 0; + break; default: break; } From 2bcc52c92f6da9a0fb7bd526d2032074ef9ddd40 Mon Sep 17 00:00:00 2001 From: Master3395 Date: Fri, 12 Apr 2024 19:35:15 +0200 Subject: [PATCH 2/9] Update store_message_info_MOD.js --- actions/store_message_info_MOD.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/actions/store_message_info_MOD.js b/actions/store_message_info_MOD.js index 890eedeb..2546161d 100644 --- a/actions/store_message_info_MOD.js +++ b/actions/store_message_info_MOD.js @@ -136,6 +136,8 @@ module.exports = { dataType = 'Guild ID'; break; case 27: + dataType = 'Boolean'; + break; case 28: // Added case for storing sticker count dataType = 'Number'; break; From 9a384d1a608c45a270d3f075d29c05bc7687c114 Mon Sep 17 00:00:00 2001 From: Master3395 Date: Sat, 13 Apr 2024 00:45:38 +0200 Subject: [PATCH 3/9] Update store_message_info_MOD.js From 67242c8dd55b1ecb26feaad3166587dc7c6ef5b6 Mon Sep 17 00:00:00 2001 From: Master3395 Date: Fri, 28 Jun 2024 16:28:42 +0200 Subject: [PATCH 4/9] Update store_message_info_MOD.js --- actions/store_message_info_MOD.js | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/actions/store_message_info_MOD.js b/actions/store_message_info_MOD.js index 2546161d..2281d413 100644 --- a/actions/store_message_info_MOD.js +++ b/actions/store_message_info_MOD.js @@ -137,7 +137,7 @@ module.exports = { break; case 27: dataType = 'Boolean'; - break; + break; case 28: // Added case for storing sticker count dataType = 'Number'; break; @@ -157,7 +157,13 @@ module.exports = { // This will make it so the patch version (0.0.X) is not checked. // --------------------------------------------------------------------- - meta: { version: '2.1.7', preciseCheck: true, author: null, authorUrl: null, downloadUrl: null }, + meta: { + version: '2.1.7', + preciseCheck: true, + author: null, + authorUrl: null, + downloadUrl: null, + }, // --------------------------------------------------------------------- // Action Fields @@ -240,7 +246,11 @@ module.exports = { // --------------------------------------------------------------------- async action(cache) { const data = cache.actions[cache.index]; - const msg = await this.getMessageFromData(data.message, data.varName, cache); + const msg = await this.getMessageFromData( + data.message, + data.varName, + cache, + ); if (!msg) { this.callNextAction(cache); From 11b21825708db2edc07ba1ad58cfb8ce98d5c1c7 Mon Sep 17 00:00:00 2001 From: Master3395 Date: Fri, 28 Jun 2024 22:03:51 +0200 Subject: [PATCH 5/9] Update store_message_info_MOD.js --- actions/store_message_info_MOD.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/actions/store_message_info_MOD.js b/actions/store_message_info_MOD.js index 2281d413..fadd9a1d 100644 --- a/actions/store_message_info_MOD.js +++ b/actions/store_message_info_MOD.js @@ -50,7 +50,9 @@ module.exports = { 'Is Reply to Message?', 'Message Stickers Count', // Added option for sticker count ]; - return `${presets.getMessageText(data.message, data.varName)} - ${info[parseInt(data.info, 10)]}`; + return `${presets.getMessageText(data.message, data.varName)} - ${ + info[parseInt(data.info, 10)] + }`; }, // --------------------------------------------------------------------- From 0c744b4bc78bf14175c328f2381260839272abb3 Mon Sep 17 00:00:00 2001 From: Master3395 Date: Fri, 28 Jun 2024 22:48:26 +0200 Subject: [PATCH 6/9] Update store_message_info_MOD.js --- actions/store_message_info_MOD.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/actions/store_message_info_MOD.js b/actions/store_message_info_MOD.js index fadd9a1d..9403e5ff 100644 --- a/actions/store_message_info_MOD.js +++ b/actions/store_message_info_MOD.js @@ -248,11 +248,7 @@ module.exports = { // --------------------------------------------------------------------- async action(cache) { const data = cache.actions[cache.index]; - const msg = await this.getMessageFromData( - data.message, - data.varName, - cache, - ); + const msg = await this.getMessageFromData(data.message, data.varName, cache); if (!msg) { this.callNextAction(cache); @@ -364,4 +360,4 @@ module.exports = { // functions you wish to overwrite. // --------------------------------------------------------------------- mod() {}, -}; +}; \ No newline at end of file From c63afa8f7c1d4288050be21d746dee39258bc31b Mon Sep 17 00:00:00 2001 From: Master3395 Date: Fri, 28 Jun 2024 23:24:41 +0200 Subject: [PATCH 7/9] Update store_message_info_MOD.js --- actions/store_message_info_MOD.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/actions/store_message_info_MOD.js b/actions/store_message_info_MOD.js index 9403e5ff..fadd9a1d 100644 --- a/actions/store_message_info_MOD.js +++ b/actions/store_message_info_MOD.js @@ -248,7 +248,11 @@ module.exports = { // --------------------------------------------------------------------- async action(cache) { const data = cache.actions[cache.index]; - const msg = await this.getMessageFromData(data.message, data.varName, cache); + const msg = await this.getMessageFromData( + data.message, + data.varName, + cache, + ); if (!msg) { this.callNextAction(cache); @@ -360,4 +364,4 @@ module.exports = { // functions you wish to overwrite. // --------------------------------------------------------------------- mod() {}, -}; \ No newline at end of file +}; From 4a1c165b417e9e2718f977c76f21f384006138a6 Mon Sep 17 00:00:00 2001 From: Master3395 Date: Fri, 28 Jun 2024 23:31:52 +0200 Subject: [PATCH 8/9] Update store_message_info_MOD.js --- actions/store_message_info_MOD.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/store_message_info_MOD.js b/actions/store_message_info_MOD.js index fadd9a1d..6d5072b4 100644 --- a/actions/store_message_info_MOD.js +++ b/actions/store_message_info_MOD.js @@ -364,4 +364,4 @@ module.exports = { // functions you wish to overwrite. // --------------------------------------------------------------------- mod() {}, -}; +}; \ No newline at end of file From bea10a33b2a6122494b60e69132eb4deabf222f2 Mon Sep 17 00:00:00 2001 From: Master3395 Date: Fri, 28 Jun 2024 23:35:18 +0200 Subject: [PATCH 9/9] Update store_message_info_MOD.js --- actions/store_message_info_MOD.js | 66 +++++++++++++++---------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/actions/store_message_info_MOD.js b/actions/store_message_info_MOD.js index 6d5072b4..7779d25d 100644 --- a/actions/store_message_info_MOD.js +++ b/actions/store_message_info_MOD.js @@ -50,9 +50,7 @@ module.exports = { 'Is Reply to Message?', 'Message Stickers Count', // Added option for sticker count ]; - return `${presets.getMessageText(data.message, data.varName)} - ${ - info[parseInt(data.info, 10)] - }`; + return `${presets.getMessageText(data.message, data.varName)} - ${info[parseInt(data.info, 10)]}`; }, // --------------------------------------------------------------------- @@ -193,36 +191,36 @@ module.exports = {


- Source Info
- + Source Info
+

@@ -347,11 +345,13 @@ module.exports = { default: break; } + if (result !== undefined) { const storage = parseInt(data.storage, 10); const varName2 = this.evalMessage(data.varName2, cache); this.storeValue(result, storage, varName2, cache); } + this.callNextAction(cache); },