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.
Why use JBot?
Provides you with all the boilerplate code which handles underlying websocket connections and other complexities.
Supports extra events in addition to all the events supported by Slack/Facebook which makes your work a lot more easier.
Receiving & sending messages is as easy as defining a @Controller and calling reply().
Conversation feature of JBot makes talking to your bot a breeze. This feature makes JBot different than rest of the Java frameworks out there.
Well tested with good coverage unit tests.
And many other features which can't just be mentioned here.
Not satisfied? Read on...
JBot got more than 400 stars in just 2 days after release.
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
Setup webhook to receive messages and other events. You need to have a public address to setup webhook. You may use
localtunnel.me to generate a public address if you're running locally on your machine.
Specify the address created above in "Callback Url" field under "Webooks" setting and give the verify token
as fb_token_for_jbot and click "Verify and Save".
You can now start messaging your bot by going to the facebook page and clicking on the "Send message" button.
If you're too lazy to start now and just want to play around, you can try jbot-example by visiting
JBot facebook page and clicking on the "Send Message" button. -- The server is currently down
This project exists thanks to all the awesome people who contribute. If you want to flaunt your skills and make
the project better, you can start contributing, and for any queries please just
raise an issue and I would be more than happy to discuss :)
请发表评论