Redesigned bot with a struct type Bot