Put in "utility" categorie
This commit is contained in:
parent
15a84f19d0
commit
e6a025e5f6
4 changed files with 29 additions and 3 deletions
|
@ -3,7 +3,7 @@ module.exports = class AvatarCommand extends Command {
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super(client, {
|
super(client, {
|
||||||
name: 'avatar',
|
name: 'avatar',
|
||||||
group: 'thing',
|
group: 'utility',
|
||||||
memberName: 'avatar',
|
memberName: 'avatar',
|
||||||
description: 'Send the avatar of the mentionned user.',
|
description: 'Send the avatar of the mentionned user.',
|
||||||
});
|
});
|
25
commands/utility/server.js
Normal file
25
commands/utility/server.js
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
const { Command } = require('discord.js-commando');
|
||||||
|
const Discord = require('discord.js');
|
||||||
|
module.exports = class ServerCommand extends Command {
|
||||||
|
constructor(client) {
|
||||||
|
super(client, {
|
||||||
|
name: 'server',
|
||||||
|
group: 'utility',
|
||||||
|
memberName: 'server',
|
||||||
|
description: 'very yes',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
async run(message) {
|
||||||
|
const serverStatsEmbed = new Discord.RichEmbed()
|
||||||
|
.setColor('#0099ff')
|
||||||
|
.setTitle('Stats of the server')
|
||||||
|
.setDescription('Some description here')
|
||||||
|
.setThumbnail(message.guild.iconURL)
|
||||||
|
.addField(`Member: **${message.guild.memberCount}** \n Channel: **${message.guild.channels}**`)
|
||||||
|
.addBlankField()
|
||||||
|
.setTimestamp()
|
||||||
|
|
||||||
|
message.say(serverStatsEmbed);
|
||||||
|
}
|
||||||
|
};
|
|
@ -3,7 +3,7 @@ module.exports = class MeowCommand extends Command {
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super(client, {
|
super(client, {
|
||||||
name: 'stats',
|
name: 'stats',
|
||||||
group: 'thing',
|
group: 'utility',
|
||||||
memberName: 'stats',
|
memberName: 'stats',
|
||||||
description: 'Show bot stats.',
|
description: 'Show bot stats.',
|
||||||
});
|
});
|
3
index.js
3
index.js
|
@ -15,10 +15,11 @@ const client = new CommandoClient({
|
||||||
client.registry
|
client.registry
|
||||||
.registerDefaultTypes()
|
.registerDefaultTypes()
|
||||||
.registerGroups([
|
.registerGroups([
|
||||||
['thing', 'some things i guess? i dont know how to name it'],
|
['thing', 'Some things i guess? i dont know how to name it'],
|
||||||
['admin', 'Commands to make admin life easier'],
|
['admin', 'Commands to make admin life easier'],
|
||||||
['owner', 'Commands the owner can use to manage the bot'],
|
['owner', 'Commands the owner can use to manage the bot'],
|
||||||
['fun', 'Fun commands'],
|
['fun', 'Fun commands'],
|
||||||
|
['utility', 'Some usefull commands'],
|
||||||
])
|
])
|
||||||
.registerDefaultGroups()
|
.registerDefaultGroups()
|
||||||
.registerDefaultCommands()
|
.registerDefaultCommands()
|
||||||
|
|
Loading…
Reference in a new issue