Ankit404butfound / PyWhatKit

Send WhatsApp message at certain time and many other things.
MIT License
1.37k stars 299 forks source link

'sleep_time' is not defined #200

Closed emmanuelobo closed 2 years ago

emmanuelobo commented 2 years ago

Description

When trying to send a WhatsApp group message instantly I am getting the below error. It seems like the variable sleep_time should actually be wait_time.

  File ".../lib/python3.9/site-packages/pywhatkit/whats.py", line 128, in sendwhatmsg_to_group_instantly
    time.sleep(sleep_time)
NameError: name 'sleep_time' is not defined

To Reproduce

Just try sending a group message instantly, the bug should always appear.

Version Information

ns23k commented 2 years ago

@emmanuelobo it was fixed in #170, it will be released to pypi shortly

emmanuelobo commented 2 years ago

Okay great, didn't notice that. I'll close this out. Thanks.