Fix formatting on initial timer reply

Fixes #27
This commit is contained in:
SileNce5k 2022-09-11 21:35:47 +02:00
parent 6f7ec05dd0
commit 94b9aaf216
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -25,6 +25,6 @@ module.exports = {
}
client.timers.push(newTimer);
fs.writeFileSync('data/timers.json', JSON.stringify(client.timers, null, 4))
message.channel.send(`I will remind you <t:${reminderTime}:R> (<t:${reminderTime}:f>)`);
message.channel.send(`I will remind you <t:${reminderTime.toFixed(0)}:R> (<t:${reminderTime.toFixed(0)}:f>)`);
}
};