From 54b0b4f94a7541f8cafe7d70a1cb3e90db55b2aa Mon Sep 17 00:00:00 2001 From: KifoPL Date: Fri, 23 Jul 2021 18:43:42 +0200 Subject: [PATCH] fixed fun cmds --- commands/fun/howgay.js | 1 + commands/fun/iq.js | 1 + commands/fun/pp.js | 1 + 3 files changed, 3 insertions(+) diff --git a/commands/fun/howgay.js b/commands/fun/howgay.js index 351ba1d..328df5d 100644 --- a/commands/fun/howgay.js +++ b/commands/fun/howgay.js @@ -10,6 +10,7 @@ module.exports = { execute(message, args, isStats = false, userID = 0) { const kifo = require("kifo"); let userid = args[0]; + if (!args[0]) userid = message.author.id; let howgay = 0; let reply = ""; let comment = ""; diff --git a/commands/fun/iq.js b/commands/fun/iq.js index b95f024..5f581f9 100644 --- a/commands/fun/iq.js +++ b/commands/fun/iq.js @@ -8,6 +8,7 @@ module.exports = { execute(message, args, isStats = false, userID = 0) { const kifo = require("kifo"); let userid = args[0]; + if (!args[0]) userid = message.author.id; let iq = 0; let reply = ""; let comment = ""; diff --git a/commands/fun/pp.js b/commands/fun/pp.js index 1d431a4..a81d9ca 100644 --- a/commands/fun/pp.js +++ b/commands/fun/pp.js @@ -10,6 +10,7 @@ module.exports = { execute(message, args, isStats = false, userID = 0) { const kifo = require("kifo"); let userid = args[0]; + if (!args[0]) userid = message.author.id; let pplen = 0; let pp = "8"; let Troll = false;