@@ -0,0 +1,555 @@
+import requests%0A%0Afrom handlers.base import MessageHandler%0Afrom util import parse_int%0A%0A_XKCD_API_CURRENT_URL = 'http://xkcd.com/info.0.json'%0A_XKCD_URL_TEMPLATE = 'http://xkcd.com/%25s/'%0A%0Aclass XkcdHandler(MessageHandler):%0A%0A  TRIGGERS = %5B'xkcd'%5D%0A  HELP = 'link to the given xkcd comic; default current'%0A%0A  def handle_message(self, event, query):%0A    number = parse_int(query)%0A    if not number:%0A      response = requests.get(_XKCD_API_CURRENT_URL)%0A      response.raise_for_status()%0A      number = response.json()%5B'num'%5D%0A    return _XKCD_URL_TEMPLATE %25 number%0A

Add xkcd handler