joaoricardo000 / whatsapp-bot-seed

A small python framework to create a whatsapp bot, with regex-callback message routing.
726 stars 245 forks source link

Any Group Member is able to misuse the /add /ban /kick command to kick,add anyone. #80

Closed haxxorsid closed 8 years ago

haxxorsid commented 8 years ago

I have entered details in config.py as :

defaults = {
    "WHATSAPP_LOGIN": "919004******",
    "WHATSAPP_PW": "******************************",
    "WHATSAPP_ADMIN": "917039******",
    "BING_API_KEY": "********************************************"
}

Here, 917039**** is my number. 919004****\ is BOT number. 91 is country code. I want to operate /add /ban /kick commands only from 917039****\ which I have specified as WHATSAPP_ADMIN**.

Problem : Any group member is able to use /add /ban /kick commands . I want to restrict the commands only to be used by my number 917039**.

Query : Is there something wrong ? Or this is how it is supposed to be work ? Or I can add some exceptions to it so that admin commands can only be used by number 917039**. How can I solve it ?

haxxorsid commented 8 years ago

Solved this nvm.