GroupButler
GroupButler copied to clipboard
Issue with admin mode when the bot is turned off
Describe the bug I was doing some testing with admin mode. If the bot is turned off, and a non superadmin adds the bot to a group, then the bot turns on, it will act as if a superadmin added it to the group.
Steps to reproduce Steps to reproduce the behavior:
- Enable
GB_ADMIN_MODE=true
- Turn off bot
- Get non superadmin to add to group
- Turn on bot
- Make non-super admin do commands, or make bot an admin
- It doesn't care, and still stays in the group
Expected behavior Bot should realise it has been added to a new group by someone who is not a super admin, and remove itself.
Environment Master branch with docker-compose
Commit id: 11fad48333ca81857754b44eb2afb19273364436 OS: Debian 8 (Jessie)