add reader and writer to Bot struct.