A working bot!

This commit should bring the bot up to 'well, it technically works'
standard. Plus some housekeeping.