You can use a permissions plugins such as PermissionsEx, LuckPerms, or Group Manager. I perfer PermissionsEx, but it might be easier if you use GroupManager.
There are many tutorials on the internet that will tell you how to set these up.
I found out the answer. After minutes of contemplating and analysis, I have concluded that the bot wasn't made by another bot. It was created by a cyborg with a powerful artificial neural network.