Skip to content

A hipchat bot written in Java supporting Java and js modules

License

Notifications You must be signed in to change notification settings

ninjabear/marissa-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

marissa-java Build Status GitHub GitHub license

A Java8 hipchat bot

Features

Command Result
marissa time Returns the time
marissa echo <text> Echo given <text>
marissa animate <text> Find an animated gif for <text>
marissa image <text> Find an image for <text>
marissa search <text> Search the web and return the best result for <text>
marissa selfie Sends you a selfie
marissa score Returns the current score marissa has. You can reward marissa with marissa +1 (or marissa +100), or punish marissa with marissa -1 (or -100..)
marissa define <text> Define a word or phrase using urbandictionary

Set up

Marissa requires the following things for everything to work;

Needs Because
A hipchat login In order to be in your room
A bing API key To perform web searches/images searches and animated image searches
A giphy API key To perform animated image searches. (A public beta key is available here.)

This config is loaded from a file in the same directory as the jar, which must be called persist.json. It looks like this;

{
  "core":{
    "userid":"***@chat.hipchat.com",
    "password":"***",
    "nickname":"Mars",
    "joinroom":"***"
  },
  "bingsearch":{
    "appid":"***"
  },
  "giphysearch":{
    "apikey":"***"
  }
}

with *** replaced with your values.

Running

Marissa is deployed as a capsuled jar - you only need java8 and to execute:

java -jar marissa-capsule.jar

providing you've set up your persist.json