Giter VIP home page Giter VIP logo

fbomb's Introduction

NAME

fbomb

SYNOPSIS

fbomb is the dangerous, easily customizable flowdock robot

TL;DR;

  ~> ./bin/fbomb setup

    # edit your config

  ~> ./bin/fbomb start

    # now a daemon is running in your flowz, try typing .help in the flow!

DESCRIPTION

after setting the appropriate api tokens and config you'll have a robot running in your flow that does all sorts of irritating stuff. to find out what he does just type .help

there are two sets of built-in commands, system commands

https://github.com/ahoward/fbomb/blob/master/lib/fbomb/commands/system.rb

and a bunch of canned ones, most of which actually work ;-)

https://github.com/ahoward/fbomb/blob/master/lib/fbomb/commands/builtin.rb

the dsl for adding commands is super, super simple, you just

  command(:my_command_name) do
    call do |*args|

      speak 'stuff'

      paste 'stuff'

    end
  end

commands can be loaded from a file by putting something like this in your config

commands:

  - system
  - builtin
  - ~/.fbomb/commands.rb

the interpolation of these paths is the only sane one

  • realtive to the libdir of the fbomb gem if bare (not starting with ~ or ./ or /)
  • otherwise an expanded path in the fs
  • otherwise a url (yep, it evaluates code from a url - sweet huh?)

in the config above you'll notice the '/.fbomb' path. by default fbomb keeps all it's state in '/.fbomb' including it's logs, pid files, config, etc. this is therefore a great place to keep commands on your server. if you gem install fbomb it's the dot directory, and nothing more, you'd probably want in your repo.

in dojo4's we have command to list our people and txt message them. here is a litle example of that custom command(s)

https://gist.github.com/ahoward/d31fc57067a15c0387bf

the fbomb tool can be installed with

~> gem install fbomb

and the cli is super well behaved, like all main.rb scripts

TIPS

# run in debug mode to emulate via stdin/stdout based controls

~> FBOMB_DEBUG=42 fbomb run
# start an iteractive shell in a live flow! 

~> fbomb shell
# use cron to drop shit in your flow 

* 12 * * * * fbomb speak 'time for stand-up bitches!' --tag stand-up

DOCS

RFTC @

fbomb's People

Contributors

ahoward avatar fredjean avatar icegulch avatar milesmatthias avatar ubermajestix avatar dj4 avatar brettgoulder avatar hoosteeno avatar aareese avatar zerowidth avatar rylanb avatar

Stargazers

Angus H. avatar

Watchers

Erik Berlin avatar James Cloos avatar  avatar

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.