Update CustomQuoter.plugin.js
This commit is contained in:
parent
8b019d954a
commit
24e9006804
|
@ -34,7 +34,7 @@ var CustomQuoter = (_ => {
|
||||||
return class CustomQuoter {
|
return class CustomQuoter {
|
||||||
getName () {return "CustomQuoter";}
|
getName () {return "CustomQuoter";}
|
||||||
|
|
||||||
getVersion () {return "1.0.1";}
|
getVersion () {return "1.0.2";}
|
||||||
|
|
||||||
getAuthor () {return "DevilBro";}
|
getAuthor () {return "DevilBro";}
|
||||||
|
|
||||||
|
@ -224,13 +224,12 @@ var CustomQuoter = (_ => {
|
||||||
let guild = channel.guild_id ? (BDFDB.LibraryModules.GuildStore.getGuild(channel.guild_id) || {id: "850725684241078788", name: "Test Server"}) : {id: "@me", name: BDFDB.LanguageUtils.LanguageStrings.DIRECT_MESSAGES};
|
let guild = channel.guild_id ? (BDFDB.LibraryModules.GuildStore.getGuild(channel.guild_id) || {id: "850725684241078788", name: "Test Server"}) : {id: "@me", name: BDFDB.LanguageUtils.LanguageStrings.DIRECT_MESSAGES};
|
||||||
|
|
||||||
return customQuote
|
return customQuote
|
||||||
.replace("$quote", unquotedLines.split("\n").map(line => "> " + line + "\n").join("") || "")
|
|
||||||
.replace("$mention", settings.ignoreMentionInDM && channel.isDM() ? "" : `<@!${message.author.id}>`)
|
.replace("$mention", settings.ignoreMentionInDM && channel.isDM() ? "" : `<@!${message.author.id}>`)
|
||||||
.replace("$authorId", message.author.id || "")
|
|
||||||
.replace("$authorName", message.author.username || "")
|
.replace("$authorName", message.author.username || "")
|
||||||
.replace("$channel", channel.isDM() ? "" : `<#${channel.id}>`)
|
.replace("$authorId", message.author.id || "")
|
||||||
.replace("$channelId", channel.id || "")
|
|
||||||
.replace("$channelName", channel.name || "")
|
.replace("$channelName", channel.name || "")
|
||||||
|
.replace("$channelId", channel.id || "")
|
||||||
|
.replace("$channel", channel.isDM() ? "" : `<#${channel.id}>`)
|
||||||
.replace("$serverId", guild.id || "")
|
.replace("$serverId", guild.id || "")
|
||||||
.replace("$serverName", guild.name || "")
|
.replace("$serverName", guild.name || "")
|
||||||
.replace("$hour", settings.forceZeros && hour < 10 ? "0" + hour : hour)
|
.replace("$hour", settings.forceZeros && hour < 10 ? "0" + hour : hour)
|
||||||
|
@ -245,6 +244,7 @@ var CustomQuoter = (_ => {
|
||||||
.replace("$day", settings.forceZeros && day < 10 ? "0" + day : day)
|
.replace("$day", settings.forceZeros && day < 10 ? "0" + day : day)
|
||||||
.replace("$month", settings.forceZeros && month < 10 ? "0" + month : month)
|
.replace("$month", settings.forceZeros && month < 10 ? "0" + month : month)
|
||||||
.replace("$year", timestamp.getFullYear())
|
.replace("$year", timestamp.getFullYear())
|
||||||
|
.replace("$quote", unquotedLines.split("\n").map(line => "> " + line + "\n").join("") || "")
|
||||||
.trim().split(" ").filter(n => n).join(" ");
|
.trim().split(" ").filter(n => n).join(" ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue