mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
among us timezone
This commit is contained in:
parent
14156604f3
commit
ca9e006aaf
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ module.exports = {
|
|||
trusted: 0,
|
||||
execute: function(bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) {
|
||||
const timezone = args.join(' ');
|
||||
const momented = moment().tz(`${timezone}`).format('dddd, MMMM Do, YYYY, hh:mm:ss A');
|
||||
const momented = moment().tz(timezone).format('dddd, MMMM Do, YYYY, hh:mm:ss A');
|
||||
const component = [{text: 'The current date and time for the timezone ', color: 'white'}, {text: timezone, color: 'aqua'}, {text: ' is: ', color: 'white'}, {text: `${momented}`, color: 'green'}];
|
||||
if (timezone.toLowerCase() === 'asia/bangkok' || timezone.toLowerCase() === 'utc') {
|
||||
bot.tellraw(selector, component);
|
||||
|
@ -22,7 +22,7 @@ module.exports = {
|
|||
},
|
||||
discordExecute: function(bot, username, usernameraw, sender, prefix, args, channeldc) {
|
||||
const timezone = args.join(' ');
|
||||
const momented = moment().tz(`${timezone}`).format('dddd, MMMM Do, YYYY, hh:mm:ss A');
|
||||
const momented = moment().tz(timezone).format('dddd, MMMM Do, YYYY, hh:mm:ss A');
|
||||
const description = `The current date and time for the timezone ${timezone} is: ${momented}`;
|
||||
if (timezone.toLowerCase() === 'asia/bangkok' || timezone.toLowerCase() === 'utc') {
|
||||
const Embed = new MessageEmbed()
|
||||
|
|
Loading…
Reference in a new issue