Port and rearchitecture of the original hygas bot