replace is crap

This commit is contained in:
Flummi 2017-11-25 19:45:38 +01:00
parent 4ea65b2a33
commit 831cde3cd9

View File

@ -78,8 +78,8 @@ module.exports = bot => {
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
e.replyAction(data.yiff[~~(Math.random() * data.yiff.length)]
.replace("{user}", `[b]${args[0]}[/b]`)
.replace("{yiffer}", `[b]${e.user.nick}[/b]`)
.split("{user}").join(`[b]${args[0]}[/b]`)
.split("{yiffer}").join(`[b]${e.user.nick}[/b]`)
);
}
});