Skip to content

Instantly share code, notes, and snippets.

@pajlada
Last active August 29, 2015 14:22
Show Gist options
  • Save pajlada/58cba14097671236fbea to your computer and use it in GitHub Desktop.
Save pajlada/58cba14097671236fbea to your computer and use it in GitHub Desktop.
exports.names = ['newfag', 'newfeg'];
exports.hidden = false;
exports.enabled = true;
exports.matchStart = true;
exports.cd_all = 15;
exports.cd_user = 30;
exports.cd_manager = 5;
exports.handler = function (data) {
var params = _.rest(data.message.split(' '), 1);
if (params.length >= 1) {
get_user_by_param(params, function(err, user, db_user) {
if (user) {
chatMessage('/me @' + user.username + ' How to DJ: http://support.plug.dj/hc/en-us/articles/203263577-I-want-to-DJ-How-do-I-do-it-');
} else {
chatMessage('/me How to DJ: http://support.plug.dj/hc/en-us/articles/203263577-I-want-to-DJ-How-do-I-do-it-');
}
});
} else {
chatMessage('/me How to DJ: http://support.plug.dj/hc/en-us/articles/203263577-I-want-to-DJ-How-do-I-do-it-');
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment