text: // Copyright (c) 2017-2018 dirigeants. All rights reserved. MIT license.
  const { Command } = require('klasa');
  
  /*
  
  	To use this correctly, you will also need the reminder task located in
  	/tasks/reminder.js
  
  */
  
  module.exports = class extends Command {
  
  	constructor(...args) {
  		super(...args, {
  			description: 'creates a reminder',
  			usage: '<when:time> <text:...str>',
  			usageDelim: ', '
  		});
  	}
  
  	async run(msg, [when, text]) {
  		const reminder = await this.client.schedule.create('reminder', when, {
  			data: {
  				channel: msg.channel.id,
  				user: msg.author.id,
  				text
  			}
  		});
  		return msg.sendMessage(`Ok, I created you a reminder with the id: \`${reminder.id}\``);
  	}
  
  };
  