Change maxhistory in bot