Based on https://github.com/TalkTakesTime/Pokemon-Showdown-Bot