Skip to content

Commit

Permalink
Merge pull request #35 from Butterroach/main
Browse files Browse the repository at this point in the history
[enhancement] let spongy wongy know if the reply is from itself or another user
  • Loading branch information
artifishvr authored Apr 18, 2024
2 parents 663415c + 91c2a4a commit 5b0a73d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,11 @@ client.on("messageCreate", async message => {
let formattedUserMessage = `${message.author.username} (${await getPronouns(message.author.id)}) on ${DateTime.now().setZone('utc').toLocaleString(DateTime.DATETIME_FULL)}: ${message.content}\n${imageDetails}`;
if (message.reference) {
await message.fetchReference().then(async (reply) => {
formattedUserMessage = `> ${reply}\n${formattedUserMessage}`;
if (reply.author.id == "954288870244114473") {
formattedUserMessage = `> ${reply}\n${formattedUserMessage}`;
} else {
formattedUserMessage = `> ${reply.author.username}: ${reply}\n${formattedUserMessage}`;
}
});
};
lastMessage = formattedUserMessage;
Expand Down Expand Up @@ -200,4 +204,4 @@ async function tts(message, text) {
}
}

client.login(process.env.DISCORD);
client.login(process.env.DISCORD);

0 comments on commit 5b0a73d

Please sign in to comment.