replace is crap
This commit is contained in:
parent
4ea65b2a33
commit
831cde3cd9
|
@ -78,8 +78,8 @@ module.exports = bot => {
|
||||||
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
|
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)]
|
e.replyAction(data.yiff[~~(Math.random() * data.yiff.length)]
|
||||||
.replace("{user}", `[b]${args[0]}[/b]`)
|
.split("{user}").join(`[b]${args[0]}[/b]`)
|
||||||
.replace("{yiffer}", `[b]${e.user.nick}[/b]`)
|
.split("{yiffer}").join(`[b]${e.user.nick}[/b]`)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user