Skip to content

Custom fork of a IRC bot for teams that use Trello

Notifications You must be signed in to change notification settings

yeahwhat-mc/hellotrello

 
 

Repository files navigation

HelloTrello

This bot checks a Trello board periodically and sends notifications of card creations and comments to an IRC chatroom. It works with multiple teams/chatrooms and can optionally ping a scrum master or team lead as a notification. It's built with Ruby and the Cinch framework.

Caution: This is a custom version we use in our Admin IRC channels at YEAHWHAT?! Not sure if you want to use it. Your choise :)

Fork changes:

  • Configurable timer (for "fetching changes")
  • IRC color and control code support
  • Return short Trello links if possible
  • Configurable action prefixes/labels
  • Colorize some IRC messages

Setup

  • Generate an API key at trello.com/1/appKey
  • Make a copy of config.example.yml and rename it config.yml
  • Request a token via: https://trello.com/1/authorize?key=APIKEY&name=HelloTrello&expiration=never&response_type=token
  • Add the token and API key, Trello board id and an optional scrum master to config.yaml
  • Multiple boards per team are allowed, just make the board ID an array
  • Run bundle install
  • Run it (by typing ruby hellotrello.rb for example)
  • Profit

Commands

  • hellotrello help : Will display a small text of possible commands.
  • hellotrello getme 123: Will retrieve a description and link for that card.
  • hellotrello quit : quits the bot

Todos

  • Better modularisation
  • Use proper Ruby logging, not puts
  • Add a procfile
  • Test for processing changes
  • Print board name when teams have multiple boards
  • Make new ticket by title and get a link and number in return

I might just want to rewrite this all in Javascript soon ;)

could dos

  • Dynamic polling intervals based upon board activity / time of day
  • Elegant solution for when multiple teams follow one board

About

Custom fork of a IRC bot for teams that use Trello

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%