Skip to content

Commit

Permalink
fixed fun cmds 2nd time
Browse files Browse the repository at this point in the history
  • Loading branch information
KifoPL committed Jul 23, 2021
1 parent 54b0b4f commit aa43873
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion commandList.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,4 @@ If the bot doesn't see some channels, stats ~~may~~ will be incorrect.
<hr/>

> - *Some commands may require additional perms for the bot.*
> - *Last update: Fri, 23 Jul 2021 15:42:09 GMT*
> - *Last update: Fri, 23 Jul 2021 16:49:37 GMT*
3 changes: 1 addition & 2 deletions commands/fun/howgay.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ module.exports = {
perms: ["SEND_MESSAGES"],
execute(message, args, isStats = false, userID = 0) {
const kifo = require("kifo");
let userid = args[0];
if (!args[0]) userid = message.author.id;
let userid = args[0] ?? message.author.id;
let howgay = 0;
let reply = "";
let comment = "";
Expand Down
3 changes: 1 addition & 2 deletions commands/fun/iq.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ module.exports = {
perms: ["SEND_MESSAGES"],
execute(message, args, isStats = false, userID = 0) {
const kifo = require("kifo");
let userid = args[0];
if (!args[0]) userid = message.author.id;
let userid = args[0] ?? message.author.id;
let iq = 0;
let reply = "";
let comment = "";
Expand Down
4 changes: 2 additions & 2 deletions commands/fun/pp.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ module.exports = {
perms: ["SEND_MESSAGES"],
execute(message, args, isStats = false, userID = 0) {
const kifo = require("kifo");
let userid = args[0];
if (!args[0]) userid = message.author.id;
let userid = args[0] ?? message.author.id;

let pplen = 0;
let pp = "8";
let Troll = false;
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ async function commands(message, prefix) {
try {
debug = client.commands
.get(command)
.execute(message, args, Discord, prefix);
.execute(message, args, prefix);
} catch (error) {
message.reply(kifo.embed(error, "Error!"));
main.log(error);
Expand Down

0 comments on commit aa43873

Please sign in to comment.