1 h can broke evreything real!1!1

This commit is contained in:
ChomeNS 2022-11-04 17:49:59 +07:00
parent fc560e157a
commit ff03731af1

View file

@ -14,7 +14,7 @@ module.exports = {
if (timezone.toLowerCase()==='asia/bangkok' || timezone.toLowerCase()==='utc') {
bot.core.run(command);
return;
} else if (momented===moment().format('dddd, MMMM Do, YYYY, h:mm:ss A')) {
} else if (momented===moment().format('dddd, MMMM Do, YYYY, hh:mm:ss A')) {
throw new SyntaxError('Invalid timezone');
} else {
bot.core.run(command);
@ -31,7 +31,7 @@ module.exports = {
.setDescription(description);
channeldc.send({embeds: [Embed]});
return;
} else if (momented===moment().format('dddd, MMMM Do, YYYY, h:mm:ss A')) {
} else if (momented===moment().format('dddd, MMMM Do, YYYY, hh:mm:ss A')) {
throw new SyntaxError('Invalid timezone');
} else {
const Embed = new MessageEmbed()