Skip to content
This repository was archived by the owner on Nov 14, 2017. It is now read-only.

Cannot receive messages #39

@dopatraman

Description

@dopatraman

Here is my code:

bot.onConnect(() => {
    console.log('Connected');
    bot.join('general@conference.xxx.xmpp.slack.com');

    repl.start('slackbot> ').context.b = new BotApi(bot);
});

bot.onMessage(/test/, (channel, from, message, matches) => {
    console.log("message:", from, matches);
});

bot.onPrivateMessage(/hello/, (from, message, matches) => {
    console.log('pm:', message);
});

A private message fires the onPrivateMessage callback, but a normal message does not. I am able to connect and authenticate just fine. what am i doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions