From 199d413119f3656d9f2da118f91a22a3cc55f6bb Mon Sep 17 00:00:00 2001 From: TymanWasTaken <32660892+tymanwastaken@users.noreply.github.com> Date: Tue, 11 May 2021 10:52:26 -0600 Subject: whoops forgot about these --- src/commands/info/BotInfoCommand.ts | 58 ------------------------------------- 1 file changed, 58 deletions(-) delete mode 100644 src/commands/info/BotInfoCommand.ts (limited to 'src/commands/info/BotInfoCommand.ts') diff --git a/src/commands/info/BotInfoCommand.ts b/src/commands/info/BotInfoCommand.ts deleted file mode 100644 index 27e14c4..0000000 --- a/src/commands/info/BotInfoCommand.ts +++ /dev/null @@ -1,58 +0,0 @@ -import { MessageEmbed } from 'discord.js'; -import { BotCommand } from '../../lib/extensions/BotCommand'; -import { duration } from 'moment'; -import { BotMessage } from '../../lib/extensions/BotMessage'; - -export default class BotInfoCommand extends BotCommand { - constructor() { - super('botinfo', { - aliases: ['botinfo'], - description: { - content: 'Shows information about the bot', - usage: 'botinfo', - examples: ['botinfo'] - } - }); - } - - public async exec(message: BotMessage): Promise { - const owners = (await this.client.util.mapIDs(this.client.ownerID)) - .map((u) => u.tag) - .join('\n'); - const currentCommit = ( - await this.client.util.shell('git rev-parse HEAD') - ).stdout.replace('\n', ''); - const repoUrl = ( - await this.client.util.shell('git remote get-url origin') - ).stdout.replace('\n', ''); - const embed = new MessageEmbed() - .setTitle('Bot Info:') - .addFields([ - { - name: 'Owners', - value: owners, - inline: true - }, - { - name: 'Uptime', - value: this.client.util.capitalize( - duration(this.client.uptime, 'milliseconds').humanize() - ) - }, - { - name: 'User count', - value: this.client.users.cache.size, - inline: true - }, - { - name: 'Current commit', - value: `[${currentCommit.substring( - 0, - 7 - )}](${repoUrl}/commit/${currentCommit})` - } - ]) - .setTimestamp(); - await message.util.send(embed); - } -} -- cgit