]> git.lizzy.rs Git - furrybot-discord.git/commitdiff
Fixes
authorElias Fleckenstein <eliasfleckenstein@web.de>
Sat, 5 Mar 2022 20:59:27 +0000 (21:59 +0100)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Sat, 5 Mar 2022 20:59:27 +0000 (21:59 +0100)
common.js
nsfw.js

index 17563879c29a97933bf503aca600e09644598022..46fe05a59fb5dfc774524a87588650cf5edcc456 100644 (file)
--- a/common.js
+++ b/common.js
@@ -102,8 +102,5 @@ module.exports.listChangeCommand = (action, list, status) => new Object({
        }
 })
 
-module.exports.stripPings = str => str
-       .replace(/<@!/g, "<@​!")
-       .replace(/<@&/g, "<@​&")
-       .replace(/@here/g, "@​here")
-       .replace(/@everyone/g, "@​everyone")
+module.exports.stripPings = str => str.replace(/@/g, "\@")
+
diff --git a/nsfw.js b/nsfw.js
index ee521771c2e2891b4a8f0b7e652f2f82a6c24a01..33f4d102971bb295c58eb995b2f26013ae1f82b2 100644 (file)
--- a/nsfw.js
+++ b/nsfw.js
@@ -15,7 +15,7 @@ module.exports = {
                        const target = targetPing ? common.getPing(targetPing) : msg.author.id
 
                        if (target)
-                               msg.reply(`${asciiDick(target)}    ← <@!${targe}>'s Dick'`)
+                               msg.reply(`${asciiDick(target)}    ← <@!${target}>'s Dick'`)
                }
        },
        boobsize: {
@@ -25,7 +25,7 @@ module.exports = {
                        const target = targetPing ? common.getPing(targetPing) : msg.author.id
 
                        if (target)
-                               msg.reply(`${asciiBoob(target)}    ← <@!${targe}>'s Boobs'`)
+                               msg.reply(`${asciiBoob(target)}    ← <@!${target}>'s Boobs'`)
                }
        },
 }