From 135d134f3c1304edd227f4ca556abf590a18f6db Mon Sep 17 00:00:00 2001 From: 8cy <50817549+8cy@users.noreply.github.com> Date: Mon, 4 May 2020 05:00:40 -0700 Subject: add poll and time cmd --- src/commands/utility/time.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/commands/utility/time.ts (limited to 'src/commands/utility/time.ts') diff --git a/src/commands/utility/time.ts b/src/commands/utility/time.ts new file mode 100644 index 0000000..5bcf892 --- /dev/null +++ b/src/commands/utility/time.ts @@ -0,0 +1,23 @@ +import { Command, CommandoMessage } from 'discord.js-commando'; +import emoji from 'emoji-random' + +module.exports = class TimeUtility extends Command { + constructor(client) { + super(client, { + name: 'time', + group: 'utility', + memberName: 'time', + description: 'Check the time.', + examples: ['uwu!time'], + throttling: { + usages: 5, + duration: 30 + }, + userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY', 'MANAGE_MESSAGES'], + clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + }); + } + run(msg: CommandoMessage) { + msg.reply(`The time is currently **${new Date()}**.`) + } +}; \ No newline at end of file -- cgit v1.2.3