The function run in carbonbot/adapters/irc.py has become quite cluttered.
run
carbonbot/adapters/irc.py