summaryrefslogtreecommitdiff
path: root/src/commands/utility/time.ts
diff options
context:
space:
mode:
author8cy <[email protected]>2020-05-04 05:00:40 -0700
committer8cy <[email protected]>2020-05-04 05:00:40 -0700
commit135d134f3c1304edd227f4ca556abf590a18f6db (patch)
tree5286e3aca34708164c18a4dd5857a9f61416939d /src/commands/utility/time.ts
parentadd status changer, v9.2.2 (diff)
downloaddep-core-135d134f3c1304edd227f4ca556abf590a18f6db.tar.xz
dep-core-135d134f3c1304edd227f4ca556abf590a18f6db.zip
add poll and time cmd
Diffstat (limited to 'src/commands/utility/time.ts')
-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