First commit based on jamespenguin pokebot