Beginnings of bot functions

Got, for the most part, functions for the bots to work. Just have an
issue when it actually goes to do the function where it blocks up.