Add support for interaction in queries

Allows for the bot to be interacted with in queries, e.g. `/msg lambot $factoids`.