A rewrite and redesign of miyabot in C++.