Don't update profile data of the bridge bot
This commit is contained in:
parent
bce3d0f2c9
commit
0deb415511
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue