This is a fork of https://github.com/rampatra/jbot which updates key dependencies of library to resolve security concerns. The core focus is for use in Slack bots.
JBot is a java framework (inspired by Howdyai's Botkit) to make Slack and Facebook bots in minutes. It provides all the boilerplate code needed so that you can make your bot live right away.
Running your SlackBot is just 4 easy steps:
- Clone this project
$ git clone https://github.com/snowplow-devops/jbot.git
. - Create a slack bot and get your slack token.
- Paste the token in application.properties file.
- Run the example application by running
JBotApplication
in your IDE or via commandline:$ cd jbot $ mvn clean install $ cd jbot-example $ mvn spring-boot:run
You can now start talking with your bot ;)
Read the detailed Slack documentation to learn more.
Setup your local settings.xml
in ${user.home}/.m2/settings.xml
and paste the following in:
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>${user.home}/.m2/repository</localRepository>
<servers>
<server>
<id>cloudsmith</id>
<username>ADD</username>
<password>ADD</password>
</server>
</servers>
</settings>
Note: You need access to CloudSmith for this section.
- Bump version in the root
pom.xml
and within thejbot
andjbot-example
modules (they should all match) - Ensure all tests pass with
mvn clean install
- Run
mvn deploy