Giter Site home page Giter Site logo

floclo's Introduction

floclo

A bot that watches a flowdock chat room and evaluates clojure expressions.

Usage

Set env vars for flowdock authentication.

FLOWDOCK_USERNAME and FLOWDOCK_PASSWORD

You must also have a ~/.java.policy file in your home directory. eg

grant {
  permission java.security.AllPermission;
};

Start it by passing the flowdock org name, room name, and a plugin config file.

lein run orgname roomname plugins.clj

Example plugins.clj

{:main         ; room
 {:clj clojure ; messags tagged #clj will invoke floclo.plugins.clojure/clojure
  :echo echo}} ; messagestagged #echo will invoke floclo.plugins.echo/echo

Evaluate any clojure expression (well, any safe expression) by tagging it #clj

(+ 1 2 3) #clj
=> 6

Set the FLOWDOCK_TAG environment variable to change the tag it's listening for.

License

Copyright © 2013 Stephen Olsen

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

floclo's People

Contributors

jeremyheiler avatar saolsen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

newsomc plumpmath

floclo's Issues

Tag literals for Flowdock commands

Have tag literals for all the Flowdock commands.

/help - Display this help.
/status [message] OR /away [message] - Send status message or clear status if no message is given.
/me message - Send an action message that does not change your status.
/query Nick - Start a 1-to-1 with user Nick
/slap Nick - Slap Nick with a fish.
/hangout - Start a new Google Hangout with your Flow.
/ /query - Send a normal message that starts with /query

So like: #status (str "b" "r" "b") would set the bot's status to say brb.

Libraries!

core.logic
core.async (maybe? that could be bad leaving background threads open and such)

floclo breaks when defing lazy sequences

There is no error message or anything and just running sandbox-eval on the same statement works fine but something like this breaks floclo.

(def x (repeat 1)) #clj

Floclo lunch feature.

  1. tell floclo you're hungry.
  2. floclo hosts and posts an image to the thread.
  3. Based on everyone's geoip which is collected as their flowdock clients render the image it makes a list of the people in the current location.
  4. floclo posts a message saying it's lunch time that directly @Pings those people.

User state (i.e. karma)

Have a map keyed on a user's name. This map could contain state for karma or anything else.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.