Far from being interested about #irc protocol in general, my interest is focused on irc.wikimedia.org read-only channels, and on parameter segment of specific rows of specific channels (but I see that all channels follow a similar pattern).
My idea is to use my very basic listening bot to select rows, to parse parameters and to write them on a file. End of irc bot work. Another cron script will read (and delete) output file and operate on the list of new/edited pages. Consider that tasks I'm implementing do not require an immediate revision of pages by the bot; on the contrary, it's more efficient, IMHO, to wait some time after an human user edit, since often human editors don't use PreView and find something to fix as they see the result of their edit.
So, considering only the last edit of a page in an interval of 10-15 minutes, many unuseful edits by bot can be avoided.
It's something very far from "async programming", I guess: a primitive approach, but IMHO it should run.
Alex