Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 731 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 731 Bytes

sunbot-slack

Plugin to turn your Suneidesis Chatbot into a Slack Bot

Maven Central

How to setup your Slack App

  • Enable Socket Mode
  • Add Event Subscriptions: message.channels and message.im
  • Add Oauth Permissions: chat:write and im:read

Get both Bot and App tokens

How to use it

    Parser bot = new EchoBox(); // Use your own parser

    String botToken = "xoxb-123456-MY_TOKEN";
    String appToken = "xapp-654321-MY_TOKEN";

    Slack slack = new Slack(botToken, appToken);
    slack.init();
    slack.addParser(bot);