A rewrite from scratch of my origional HeufyBot project.