From 3fc6824e57226f28b47ab6f4a918082c90918c7f Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Sun, 25 Feb 2024 20:43:32 +1100 Subject: [PATCH 1/2] Update @types/pg --- .pnp.cjs | 12 ++++++------ package.json | 2 +- yarn.lock | 10 +++++----- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.pnp.cjs b/.pnp.cjs index 0226ab4..613317b 100644 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -32,7 +32,7 @@ const RAW_RUNTIME_STATE = ["@types/ms", "npm:0.7.34"],\ ["@types/node", "npm:20.11.20"],\ ["@types/node-cron", "npm:3.0.11"],\ - ["@types/pg", "npm:8.11.0"],\ + ["@types/pg", "npm:8.11.1"],\ ["@types/sequelize", "npm:4.28.20"],\ ["ansi-colors", "npm:4.1.3"],\ ["dayjs", "npm:1.11.10"],\ @@ -674,10 +674,10 @@ const RAW_RUNTIME_STATE = }]\ ]],\ ["@types/pg", [\ - ["npm:8.11.0", {\ - "packageLocation": "./.yarn/cache/@types-pg-npm-8.11.0-bf104da0ba-91a7ccc5dc.zip/node_modules/@types/pg/",\ + ["npm:8.11.1", {\ + "packageLocation": "./.yarn/cache/@types-pg-npm-8.11.1-5d06a4b9df-2fdcb0dc33.zip/node_modules/@types/pg/",\ "packageDependencies": [\ - ["@types/pg", "npm:8.11.0"],\ + ["@types/pg", "npm:8.11.1"],\ ["@types/node", "npm:20.11.20"],\ ["pg-protocol", "npm:1.6.0"],\ ["pg-types", "npm:4.0.2"]\ @@ -781,7 +781,7 @@ const RAW_RUNTIME_STATE = ["@types/ms", "npm:0.7.34"],\ ["@types/node", "npm:20.11.20"],\ ["@types/node-cron", "npm:3.0.11"],\ - ["@types/pg", "npm:8.11.0"],\ + ["@types/pg", "npm:8.11.1"],\ ["@types/sequelize", "npm:4.28.20"],\ ["ansi-colors", "npm:4.1.3"],\ ["dayjs", "npm:1.11.10"],\ @@ -1301,7 +1301,7 @@ const RAW_RUNTIME_STATE = ["@types/mariadb", null],\ ["@types/mysql2", null],\ ["@types/oracledb", null],\ - ["@types/pg", "npm:8.11.0"],\ + ["@types/pg", "npm:8.11.1"],\ ["@types/pg-hstore", null],\ ["@types/snowflake-sdk", null],\ ["@types/sqlite3", null],\ diff --git a/package.json b/package.json index b3ed467..4d664fb 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "@types/ms": "0.7.34", "@types/node": "20.11.20", "@types/node-cron": "3.0.11", - "@types/pg": "8.11.0", + "@types/pg": "8.11.1", "@types/sequelize": "4.28.20", "typescript": "5.3.3" } diff --git a/yarn.lock b/yarn.lock index 21af355..fa0a9ea 100644 --- a/yarn.lock +++ b/yarn.lock @@ -482,14 +482,14 @@ __metadata: languageName: node linkType: hard -"@types/pg@npm:8.11.0": - version: 8.11.0 - resolution: "@types/pg@npm:8.11.0" +"@types/pg@npm:8.11.1": + version: 8.11.1 + resolution: "@types/pg@npm:8.11.1" dependencies: "@types/node": "npm:*" pg-protocol: "npm:*" pg-types: "npm:^4.0.1" - checksum: 10/91a7ccc5dc8e162d9d181f48f699eb4628632e75bd9db1c0ca774ec9b055b177875fb4b426279961061912f25fb3948c48c96e63ac9e85efcf7ce6f2567b6485 + checksum: 10/2fdcb0dc331c4f4e334061c30a14187a6d835a049be9e9a2d84d55935025c45be7f5f40fd6b854c19fcf72d17e854481b11a461d7679005d9813bf29c56ba380 languageName: node linkType: hard @@ -575,7 +575,7 @@ __metadata: "@types/ms": "npm:0.7.34" "@types/node": "npm:20.11.20" "@types/node-cron": "npm:3.0.11" - "@types/pg": "npm:8.11.0" + "@types/pg": "npm:8.11.1" "@types/sequelize": "npm:4.28.20" ansi-colors: "npm:4.1.3" dayjs: "npm:1.11.10" From d1b9d7a618de72ed9fb8be4d6d2b7c954a767c44 Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Sun, 25 Feb 2024 23:18:33 +1100 Subject: [PATCH 2/2] Fix flood in console --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 7809bec..64cf068 100644 --- a/src/index.ts +++ b/src/index.ts @@ -105,7 +105,7 @@ client.on('raw', async (packet:RawGatewayPacket)=>{ const channel = client.channels.cache.get(packet.d.channel_id) as Discord.TextBasedChannel; // Switched to console.log to prevent useless embed creation that has same content as the original message. - if (!rawSwitches.MESSAGE_UPDATE) return Logger.console('log', 'RawEvent:Edit', `Message was edited in #${(channel as Discord.TextChannel).name}`); + if (!rawSwitches.MESSAGE_UPDATE && !packet.d.author.bot) return Logger.console('log', 'RawEvent:Edit', `Message was edited in #${(channel as Discord.TextChannel).name}`); }); client.on('raw', async (packet:RawGatewayPacket)=>{