saolsen / floclo

Floclo watches a flowdock chat room and evaluates clojure expressions tagged with #clj
5 stars 2 forks source link

Tag literals for Flowdock commands #18

Open jeremyheiler opened 10 years ago

jeremyheiler commented 10 years ago

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.

jeremyheiler commented 10 years ago

This would be really cool with hangouts by having the bot start a hangout for you at a scheduled time.

saolsen commented 10 years ago

Not sure tagged literals are useful or necessary here. Just defining these as functions that you can call would work well.

jeremyheiler commented 10 years ago

True.