slap them all

This commit is contained in:
Flummi 2023-07-17 18:32:59 +02:00
parent 5f6bde0e21
commit b5197f92f4

View File

@ -158,7 +158,7 @@ export default async bot => {
}, { }, {
name: "slap", name: "slap",
call: /^(\.|\/)slap/i, call: /^(\.|\/)slap/i,
set: "nxy", set: "all",
f: e => { f: e => {
e.replyAction(data.slap[~~(Math.random() * data.slap.length)] e.replyAction(data.slap[~~(Math.random() * data.slap.length)]
.replace("{user}", `[b]${e.args.join(" ") || e.user.nick}[/b]`) .replace("{user}", `[b]${e.args.join(" ") || e.user.nick}[/b]`)