Fix nil pointer dereference
Move 001 handling into bot