Split commands into subdirectories
* Move command files into directories * Edit relative paths * Update gitignore * Finish support for commands in subdir * Split up getCommandFiles into own function * Add support for subdirs on help command
This commit is contained in:
parent
8993eeaf7a
commit
e7cdd425d1
21 changed files with 55 additions and 35 deletions
24
commands/info/botinfo.js
Normal file
24
commands/info/botinfo.js
Normal file
|
@ -0,0 +1,24 @@
|
|||
const Discord = require('discord.js');
|
||||
const getCreationDate = require('../../util/getCreationDate');
|
||||
const getGuildCount = require('../../util/getGuildCount');
|
||||
|
||||
|
||||
|
||||
module.exports = {
|
||||
name: 'botinfo',
|
||||
description: 'Shows information about the bot',
|
||||
execute({message, client, prefix}) {
|
||||
let guildCount = getGuildCount(client)
|
||||
const embed = new Discord.MessageEmbed()
|
||||
.setColor(15780145)
|
||||
.setTitle("Information about bot")
|
||||
.setTimestamp()
|
||||
.setAuthor(client.user.username, client.user.avatarURL({ dynamic: true, size: 4096 }))
|
||||
.addFields({
|
||||
name: "General info", value: `Name: ${client.user.username}\nPrefix: ${prefix}\nTotal Servers: ${guildCount}\nCreation Date: ${getCreationDate(client)}\nSource: [Click Here](https://github.com/SileNce5k/discord_bot)`,
|
||||
},)
|
||||
|
||||
message.channel.send(embed)
|
||||
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue