diff --git a/Main.js b/Main.js index 3735341..118012f 100644 --- a/Main.js +++ b/Main.js @@ -29,6 +29,7 @@ client.registry 'experiment', 'image', 'fun', + "profile", "owner" ]) .registerDefaults() @@ -101,7 +102,7 @@ client.on("messageUpdate", async (msgold, msgnew) => { }); client.on("guildMemberUpdate", async (memberold, membernew) => { - console.log(memberold.toJSON(), "\n\n", membernew.toJSON()); + //console.log(memberold.toJSON(), "\n\n", membernew.toJSON()); if (!membernew.user.dbLoaded && !membernew.user.bot) { await membernew.user.dbLoad(); } diff --git a/cmds/fun/chat.js b/cmds/fun/chat.js index f9b32b1..bf3fe73 100644 --- a/cmds/fun/chat.js +++ b/cmds/fun/chat.js @@ -14,7 +14,7 @@ module.exports = class chat extends commando.Command { }); } async run(msg, args) { - if (args?.length === 0) { + if (!args) { return trySend("Ask me somethin?"); } return msg.channel.startTyping().then( diff --git a/cmds/utility/say.js b/cmds/fun/say.js similarity index 97% rename from cmds/utility/say.js rename to cmds/fun/say.js index 426954a..d1744e8 100644 --- a/cmds/utility/say.js +++ b/cmds/fun/say.js @@ -9,7 +9,7 @@ module.exports = class say extends commando.Command { super(client, { name: "say", memberName: "say", - group: "utility", + group: "fun", description: "Say." }); } diff --git a/cmds/utility/send.js b/cmds/fun/send.js similarity index 98% rename from cmds/utility/send.js rename to cmds/fun/send.js index 4196d59..1053b93 100644 --- a/cmds/utility/send.js +++ b/cmds/fun/send.js @@ -8,7 +8,7 @@ module.exports = class send extends commando.Command { super(client, { name: "send", memberName: "send", - group: "utility", + group: "fun", description: "Send message to designated channel.", guildOnly:true }); diff --git a/cmds/utility/avatar.js b/cmds/profile/avatar.js similarity index 99% rename from cmds/utility/avatar.js rename to cmds/profile/avatar.js index e3c9dde..ca5dbec 100644 --- a/cmds/utility/avatar.js +++ b/cmds/profile/avatar.js @@ -11,7 +11,7 @@ module.exports = class avatar extends commando.Command { name: "avatar", aliases:["av","avat"], memberName: "avatar", - group: "utility", + group: "profile", description: "Avatar showcase." }); } diff --git a/cmds/utility/profile.js b/cmds/profile/profile.js similarity index 98% rename from cmds/utility/profile.js rename to cmds/profile/profile.js index acd7221..f0b0cb5 100644 --- a/cmds/utility/profile.js +++ b/cmds/profile/profile.js @@ -9,7 +9,7 @@ module.exports = class profile extends commando.Command { super(client, { name: "profile", memberName: "profile", - group: "utility", + group: "profile", description: "Show Users/Member profile" }); } diff --git a/cmds/utility/servav.js b/cmds/profile/servav.js similarity index 98% rename from cmds/utility/servav.js rename to cmds/profile/servav.js index be7da64..4582e65 100644 --- a/cmds/utility/servav.js +++ b/cmds/profile/servav.js @@ -12,7 +12,7 @@ module.exports = class servav extends commando.Command { name: "serv-av", memberName: "serv-av", aliases: ["server-avatar", "serv-avatar", "server-av"], - group: "utility", + group: "profile", description: "Show server avatar." }); } diff --git a/cmds/utility/perms.js b/cmds/utility/perms.js new file mode 100644 index 0000000..a726efc --- /dev/null +++ b/cmds/utility/perms.js @@ -0,0 +1 @@ +'use strict'; \ No newline at end of file