Created
December 4, 2014 01:34
-
-
Save hayksaakian/b72463d33fdd501f775e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var moment = require('moment'); | |
var tz = require('moment-timezone'); | |
var timePlugin = { | |
init: function (client, imports) { | |
return { | |
exports: null, | |
handlers: { | |
'!time': function (message) { | |
var timeNow = moment().tz('America/Chicago').format('ddd, h:mm A'); | |
client.say(timeNow + ' Central Steven Time'); | |
} | |
}, | |
help: { | |
'command': [ | |
'!time', | |
' ', | |
'Gives the requestor the time for steven (CST).' | |
] | |
}, | |
commands: ['time'], | |
hooks: null | |
} | |
} | |
}; | |
module.exports = timePlugin; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment