Implement Gregory's bot.