Skip to content
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

Hook not working #49

Open
th3fallen opened this issue Oct 9, 2015 · 0 comments
Open

Hook not working #49

th3fallen opened this issue Oct 9, 2015 · 0 comments

Comments

@th3fallen
Copy link

Am i just stupid or is something wrong...

I'm running this but the messages are never being send...

module.exports = function (robot) {

    robot.on("plus-one", function (plusone) {
        var blacklist = ['vim', 'dickbutt', 'something'];

        if (blacklist.indexOf( plusone.name) !== -1) {
            return robot.reply("Sorry Peon you cant tamper with " + plusone.name);
        }
        return robot.reply("hey im running last command from" + plusone.from);

    });

This is with slack adapter if that makes any difference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant