Skip to content

praveenraonp/bot4j-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bot4j example bot

Build License

This is an example bot for the bot4j framework. It illustrates integration with Facebook, Telegram, Slack and Alexa and is a starting point for developing own bots based on bot4j.

Getting started

  • Clone or download this repo
  • Start bot web server
    • In Eclipse import the directory as a an existing Maven project. Right click class ai.nitro.bot4j.Application, choose Run As and click Java Application. A Jetty Web server will start on address 0.0.0.0:4567.
    • Alternatively you can start by
$ mvn clean package exec:java
  • Optionally install ngrok for exposing the web server on the internet. Start by ngrok http 4567.
  • Facebook setup
  • Chat
    • In Facebook Messenger send a message to your Facebook page. Facebook should forward the message via the configured webhook to your web server.
    • ExampleBot will process the message and answer.

License

Licensed under the BSD 3-Clause License. See LICENSE for details.

And finally...

Patches accepted, or create an issue!

About

An example bot using bot4j

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages