From 437a8c7bd13656a423c918cb965f01324d8d14ca Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Sat, 8 May 2021 03:22:34 +0000 Subject: [PATCH] remindme --- commands/utility/remind.js | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/commands/utility/remind.js b/commands/utility/remind.js index 0910c8e..3730e50 100644 --- a/commands/utility/remind.js +++ b/commands/utility/remind.js @@ -1,21 +1,36 @@ const Discord = require('discord.js'); const cron = require('cron'); +const moment = require('moment'); module.exports = { name: "remind", aliases: ['remindme', 'reminder'], meta: { category: 'Utility', - description: "", - syntax: '` <>`', + description: "Set a reminder for something later", + syntax: '`remind `', extra: null }, help: new Discord.MessageEmbed() - .setTitle("Help -> ") - .setDescription("") - .addField("Syntax", "``"), + .setTitle("Help -> Reminders") + .setDescription("Have me remind you about something later on.") + .addField("Syntax", "`remind `"), async execute(message, msg, args, cmd, prefix, mention, client) { - //if (!args.length) {return message.channel.send(`Syntax: \`${prefix}\``);} - const job = new cron.CronJob(new Date().setMinutes(new Date().getMinutes() + 1), () => message.author.send('test cron')); + if (!args.length) {return message.channel.send(`Syntax: \`${prefix}remind