forked from GitHub/dbot
24 horu clock to appease roi
This commit is contained in:
parent
a721d82e76
commit
e45aa0bcde
@ -58,7 +58,7 @@ var commands = function(dbot) {
|
|||||||
this.api.resolveUser(event.server, nick, function(user) {
|
this.api.resolveUser(event.server, nick, function(user) {
|
||||||
if(user) {
|
if(user) {
|
||||||
if(user.timezone) {
|
if(user.timezone) {
|
||||||
var fDate = moment.tz(user.timezone).format('LLL');
|
var fDate = moment.tz(user.timezone).format('MMMM Do YYYY HH:mm:ss');
|
||||||
event.reply('The time for ' + user.primaryNick + ' is: ' + fDate);
|
event.reply('The time for ' + user.primaryNick + ' is: ' + fDate);
|
||||||
} else {
|
} else {
|
||||||
event.reply(user.primaryNick + ' doesn\'t have a timezone set. They can do this with ~timezone.');
|
event.reply(user.primaryNick + ' doesn\'t have a timezone set. They can do this with ~timezone.');
|
||||||
|
Loading…
Reference in New Issue
Block a user