Timer -> Remind

This commit is contained in:
Dragon Fire
2020-11-19 17:30:43 -05:00
parent 305788ba19
commit 18549374cf
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -865,11 +865,11 @@ Total: 559
* **dating:** Find the person of your dreams with this dating system!
* **portal-send:** Send a message to a portal channel.
* **prune:** Deletes up to 99 messages from the current channel.
* **remind:** Sets a reminder.
* **rename-all:** Renames every member of the server. (Owner-Only)
* **screenshot:** Takes a screenshot of any webpage.
* **smilebasic:** Responds with a ZIP file for a SmileBASIC project.
* **strawpoll:** Generates a Strawpoll with the options you provide.
* **timer:** Sets a timer for anywhere from 1 second to 10 minutes.
### Roleplay:
@@ -1,14 +1,14 @@
const Command = require('../../structures/Command');
const moment = require('moment');
module.exports = class TimerCommand extends Command {
module.exports = class RemindCommand extends Command {
constructor(client) {
super(client, {
name: 'timer',
aliases: ['remind', 'remind-me'],
name: 'remind',
aliases: ['timer', 'remind-me'],
group: 'other',
memberName: 'timer',
description: 'Sets a timer.',
memberName: 'remind',
description: 'Sets a reminder.',
args: [
{
key: 'time',
@@ -21,7 +21,7 @@ module.exports = class TimerCommand extends Command {
async run(msg, { time }) {
const exists = await this.client.timers.exists(msg.channel.id, msg.author.id);
if (exists) return msg.reply('Only one timer can be set per channel per user.');
if (exists) return msg.reply('Only one reminder can be set per channel per user.');
const timeMs = time.startDate.getTime() - Date.now();
const display = moment().add(timeMs, 'ms').fromNow();
const title = time.eventTitle || 'something';