-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding cat powers #6
base: master
Are you sure you want to change the base?
Conversation
Adding cat powers.
Update librenms.coffee
If we update this bot for discord, you can embed the images :) |
@@ -31,3 +31,9 @@ module.exports = (robot) -> | |||
robot.hear /(.*)allah is doing(.*)/i, (msg) -> | |||
user = msg.message.user.name | |||
robot.adapter.command "KICK", channel, user, nick, "Not here!" | |||
robot.hear /^kitty$/i, (msg) -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably be robot.respond
That way we only get kitty pics when we ask for them :)
@@ -31,3 +31,9 @@ module.exports = (robot) -> | |||
robot.hear /(.*)allah is doing(.*)/i, (msg) -> | |||
user = msg.message.user.name | |||
robot.adapter.command "KICK", channel, user, nick, "Not here!" | |||
robot.hear /^kitty$/i, (msg) -> | |||
user = msg.message.user.name | |||
msg.reply "#{user}: here's a kitty http://thecatapi.com/api/images/get?format=src&type=gif" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you need the #{user}:
part when doing msg.reply
Meow.