add query and names messages to bot