mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-24 14:07:03 +01:00
Dont parse message author if it starts with a mention
This commit is contained in:
parent
8c8e3cd3ab
commit
eda98c6339
@ -1169,7 +1169,7 @@
|
||||
}
|
||||
|
||||
function format_bot_message(message) {
|
||||
if (message.author.id == bot_client_id && (message.content.includes("**") && ( (message.content.includes("<")&&message.content.includes(">")) || (message.content.includes("[") && message.content.includes("]")) ))) {
|
||||
if (message.author.id == bot_client_id && (message.content.includes("**") && ( (message.content.includes("<")&&message.content.includes(">")&&!message.content.startsWith("<@")) || (message.content.includes("[") && message.content.includes("]")) ))) {
|
||||
var usernamefield = message.content.substring(getPosition(message.content, "**", 1)+3, getPosition(message.content, "**", 2)-1);
|
||||
if (message.content.startsWith("(Titan Dev) ")) {
|
||||
message.content = message.content.substring(usernamefield.length + 18);
|
||||
|
Loading…
Reference in New Issue
Block a user