it'd be nice if !log lines that mention phab tickets get mentioned in the ticket itself, possibly with a bot because there isn't a complete map of nick -> phab user
I have a Labs project that is tracking all !log messages to power https://tools.wmflabs.org/sal/. This is done with the Logstash irc input method and some Logstash processing rules. My tool also notices /T\d+/ to link to the mentioned Phab ticket, but it does that in PHP when a log message is displayed.
Logstash rules could be created to copy messages with /T\d+/ off to another output besides Elasticsearch. If somebody wanted to get really fancy they could theoretically write a Phabricator output for Logstash that new how to post a message to a task. Logstash is a jruby stack with plugins written in Ruby.
It would probably be easier to write a small python irc bot that did it all end to end however.
Is !log => SAL no longer done by Stashbot? In theory, that already has code for example to output to Twitter, so adding a Phabricator output should be "easy" (IIRC @gerritbot is written in Python, so there should be a Python way to access Phabricator). The code is at http://git.wikimedia.org/summary/?r=operations/debs/adminbot.git.
The phabricator api is such a simple rest-ish api, that custom libraries are barely necessary, especially for simple tasks. Also, arcanist can be used to make arbitrary conduit requests from the command line. So pretty much any bot could be modified to "do the needful"