The bot reacts to user book needs, crawls search results from https://buechereien.wien.gv.at/ related to the need and generates atoms for each of them.
The bot can be interacted with in three ways:
- generate an atom "Find a Book" with the search query as the Title
- generate an atom "Look for something" and relate it to books by adding a tag that cointains the word "book", "buch" or "bücher" search query as Title or ISBN (if ISBN is filled in this is used for the search query no matter the title)
- connect with the bots atom and send him a message containing the book title or isbn you are looking for
The BookPileBot is a Spring Boot Application.
Members:
The BookMatchBot uses our generated atoms to match with user generated atoms searching for books.
Further more, we used their BookAtomModelWrapper and extended it.
- Openjdk 8 - the method described here does not work with the Oracle 8 JDK!
- Maven framework set up
cd won-bookpilebot
export WON_NODE_URI="https://hackathonnode.matchat.org/won"
mvn clean package
java -jar target/bot.jar
Now go to What's new to find your bot, connect and create an atom or message your bot to see the bot in action.
- Create a run configuration for the class
won.bot.bookpile.BookPileBot - Add the environment variables
WON_NODE_URIpointing to your node uri (e.g.https://hackathonnode.matchat.org/wonwithout quotes)
to your run configuration.
- Run your configuration
If you get a message indicating your keysize is restricted on startup (JCE unlimited strength encryption policy is not enabled, WoN applications will not work. Please consult the setup guide.), refer to Enabling Unlimited Strength Jurisdiction Policy to increase the allowed key size.
WON_KEYSTORE_DIRpath to folder wherebot-keys.jksandowner-trusted-certs.jksare stored (needs write access and folder must exist)