Inspired by shibumis IRCollection dbot.py