From 5e6d16402a2efaa623b2bed744375c6af08aa6f3 Mon Sep 17 00:00:00 2001 From: Markus-Rost <37275477+Markus-Rost@users.noreply.github.com> Date: Fri, 25 Oct 2024 03:09:14 +0200 Subject: [PATCH] don't parse links for non-update edits --- RcGcDw_buttons | 2 +- bot.js | 1 + package-lock.json | 8 ++++---- package.json | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/RcGcDw_buttons b/RcGcDw_buttons index 41332a4b..fe595b15 160000 --- a/RcGcDw_buttons +++ b/RcGcDw_buttons @@ -1 +1 @@ -Subproject commit 41332a4b412453b25cad352ad28af0dc1f688f5b +Subproject commit fe595b15ecfa524b07b7680cf59351593c0b9895 diff --git a/bot.js b/bot.js index c2905c00..b61681f6 100644 --- a/bot.js +++ b/bot.js @@ -381,6 +381,7 @@ function messageCreate(msg) { }; client.on( Discord.Events.MessageUpdate, (oldmsg, msg) => { + if ( oldmsg.content === msg.content ) return; if ( !inlineCache.has(msg) ) return; if ( msg.channel.partial ) return msg.channel.fetch().then( () => { return messageUpdate(msg); diff --git a/package-lock.json b/package-lock.json index cb44fc67..212c203c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,7 @@ "htmlparser2": "^9.1.0", "mediawiki-projects-list": "^4.7.3", "npm": "^10.9.0", - "pg": "^8.13.0" + "pg": "^8.13.1" }, "engines": { "node": ">=20.0.0" @@ -3754,9 +3754,9 @@ "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==" }, "node_modules/pg": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/pg/-/pg-8.13.0.tgz", - "integrity": "sha512-34wkUTh3SxTClfoHB3pQ7bIMvw9dpFU1audQQeZG837fmHfHpr14n/AELVDoOYVDW2h5RDWU78tFjkD+erSBsw==", + "version": "8.13.1", + "resolved": "https://registry.npmjs.org/pg/-/pg-8.13.1.tgz", + "integrity": "sha512-OUir1A0rPNZlX//c7ksiu7crsGZTKSOXJPgtNiHGIlC9H0lO+NC6ZDYksSgBYY/thSWhnSRBv8w1lieNNGATNQ==", "license": "MIT", "dependencies": { "pg-connection-string": "^2.7.0", diff --git a/package.json b/package.json index cc47c01e..e5dd1105 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "htmlparser2": "^9.1.0", "mediawiki-projects-list": "^4.7.3", "npm": "^10.9.0", - "pg": "^8.13.0" + "pg": "^8.13.1" }, "repository": { "type": "git",