Bot re-write, possibly buggy
More bot changes, possibly buggy