Skip to content

Commit

Permalink
Fixed URLs breaking the origin dot feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalitsune authored Dec 24, 2023
1 parent cd0ef30 commit 16f2989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bot/events/messageCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async function replicaHandler(message, replicaChannel) {

// if the source and target channels are equals, check if the message is the same as the original or if it's coming from the same language
if (replicaChannel.source_channel_id === replicaChannel.target_channel_id && (translated.text === message.content || translated.from === replicaChannel.target_language_code)) return;
else translated.text += `[。](<${message.url}>)`; //adds a discrete character at the end of each messages referencing the original message
else translated.text += ` [。](<${message.url}>)`; //adds a discrete character at the end of each messages referencing the original message

// if possible use webhooks, otherwise use the bot
// if the channel is a thread the webhook needs to be created in the parent channel
Expand Down

0 comments on commit 16f2989

Please sign in to comment.