discord_bot/commands/misc/timers.js
SileNce5k d41b28ec91
Use an sqlite3 database for timer feature
There were some other small edits as well, mostly formatting or better
logging in certain functions
2023-06-01 12:01:03 +02:00

13 lines
No EOL
413 B
JavaScript

module.exports = {
name: "timers",
description: "Check your own timers",
execute({client, message}) {
let authorTimers = "";
client.timers.forEach(timer => {
if(timer.user === message.author.id)
authorTimers += `${timer.ID} : <t:${timer.reminderDate}:R>`;
});
let sendText = "" === authorTimers ? `You have no timers` : `Your timers are:\n${authorTimers}`
message.channel.send(sendText);
}
};