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') { if (timezone.toLowerCase()==='asia/bangkok' || timezone.toLowerCase()==='utc') {
bot.core.run(command); bot.core.run(command);
return; 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'); throw new SyntaxError('Invalid timezone');
} else { } else {
bot.core.run(command); bot.core.run(command);
@ -31,7 +31,7 @@ module.exports = {
.setDescription(description); .setDescription(description);
channeldc.send({embeds: [Embed]}); channeldc.send({embeds: [Embed]});
return; 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'); throw new SyntaxError('Invalid timezone');
} else { } else {
const Embed = new MessageEmbed() const Embed = new MessageEmbed()