mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-07 06:45:31 +02:00
Timer -> Remind
This commit is contained in:
@@ -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';
|
||||
Reference in New Issue
Block a user