Skip to content

WoN-Hackathon-2019/won-LocationInformationBot

Repository files navigation

Location Information Bot

This bot connects to a custom atom, which provides the Location Information (or li, pi, etc.) tag. It then provides the client with useful information about the desired location via a direct message. Cooperation with TranslateBot for additional info.

RubberDuckyStudio

Team: RubberDuckyStudio

Members:

Projects

LI Bot

The LocationInformation-Bot provides information about a given location. It reacts to Atoms with one of the following tags: [location information, locationinformation, location-information, position information, positioninformation, position-information, pi, li]

Cooperations

Translation Bot: Gather translation for some important words/sentences for the searched city/location


Running the bot

Useful HowTo's

HowTo

Prerequisites

  • Openjdk 8 - the method described here does not work with the Oracle 8 JDK!
  • Maven framework set up

On the command line

cd bot-skeleton
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 to see the bot in action.

In Intellij Idea

  1. Create a run configuration for the class won.bot.skeleton.SkeletonBotApp
  2. Add the environment variables
  • WON_NODE_URI pointing to your node uri (e.g. https://hackathonnode.matchat.org/won without quotes)

to your run configuration.

  1. 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.

Optional Parameters for both Run Configurations:
  • WON_KEYSTORE_DIR path to folder where bot-keys.jks and owner-trusted-certs.jks are stored (needs write access and folder must exist)// Change API Keys in LocationData.java

Start coding

Once the skeleton bot is running, you can use it as a base for implementing your own application.

Setting up

  • Download or clone this repository
  • Add config files

Please refer to the general Bot Readme for more information on Web of Needs Bot applications.

About

This bot displays several information datasets of interest to the user.

Resources

License

Stars

0 stars

Watchers

3 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors