From 0deb4155115e22646718b1cee69b866800bfdffe Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Tue, 19 Mar 2024 22:15:44 +1300 Subject: [PATCH] Don't update profile data of the bridge bot --- d2m/actions/send-message.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/d2m/actions/send-message.js b/d2m/actions/send-message.js index a1290e05..346ac0df 100644 --- a/d2m/actions/send-message.js +++ b/d2m/actions/send-message.js @@ -29,7 +29,9 @@ async function sendMessage(message, channel, guild, row) { let senderMxid = null if (!dUtils.isWebhookMessage(message)) { - if (message.member) { // available on a gateway message create event + if (message.author.id === discord.application.id) { + // no need to sync the bot's own user + } else if (message.member) { // available on a gateway message create event senderMxid = await registerUser.syncUser(message.author, message.member, channel, guild, roomID) } else { // well, good enough... senderMxid = await registerUser.ensureSimJoined(message.author, roomID)