A Java8 hipchat bot
| 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 |
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.
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