From bb511abc03bb66848947e37a999502b813c77269 Mon Sep 17 00:00:00 2001 From: 8cy <50817549+8cy@users.noreply.github.com> Date: Thu, 23 Jul 2020 23:24:17 -0700 Subject: goodbye old uwufier :cry: --- src/commands/bot/uptime.ts | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 src/commands/bot/uptime.ts (limited to 'src/commands/bot/uptime.ts') diff --git a/src/commands/bot/uptime.ts b/src/commands/bot/uptime.ts deleted file mode 100644 index 768d43a..0000000 --- a/src/commands/bot/uptime.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import { duration as _duration } from 'moment'; -import 'moment-duration-format'; -import emoji from 'emoji-random'; -import { MessageEmbed } from 'discord.js'; - -export default class UptimeBot extends Command { - constructor(client) { - super(client, { - name: 'uptime', - aliases: ['ut'], - group: 'bot', - memberName: 'uptime', - description: 'Tells you how long uwufier has been online.', - throttling: { - usages: 5, - duration: 30 - }, - examples: [ - 'uwu!uptime', - 'uwu!ut' - ], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] - }); - } - run(msg: CommandoMessage) { - const duration = _duration(this.client.uptime).format(" D [days], H [hrs], m [mins], s [secs]"); - msg.say('Please wait...').then(m => { - m.edit(`** **`); - - let emb = new MessageEmbed() - .setDescription('<@699473263998271489> has been up for ' + duration + '. ' + emoji.random()) - .setColor(0xFFCC4D) - - msg.say(emb); - }); - } -} \ No newline at end of file -- cgit v1.2.3