summaryrefslogtreecommitdiff
path: root/src/commands/utility
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/utility')
-rw-r--r--src/commands/utility/time.ts23
1 files changed, 23 insertions, 0 deletions
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