You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "C:/Users/Puraab/PycharmProjects/Puraab1/TEXT_AUTO.py", line 13, in
schedule.every().day.at(utils.scheduled_time).do(send_message)
AttributeError: module 'utils' has no attribute 'scheduled_time'
This was the code I executed:-
import time
import random
import schedule
import subprocess
import utils
Traceback (most recent call last):
File "C:/Users/Puraab/PycharmProjects/Puraab1/TEXT_AUTO.py", line 13, in
schedule.every().day.at(utils.scheduled_time).do(send_message)
AttributeError: module 'utils' has no attribute 'scheduled_time'
This was the code I executed:-
import time
import random
import schedule
import subprocess
import utils
def send_message():
subprocess.call("osascript message.applescript '%s' '%s'" % (f'{utils.phone_number}', f'{random.choice(utils.message)}'), shell=True)
if name == 'main':
schedule.every().day.at(utils.scheduled_time).do(send_message)
while True:
schedule.run_pending()
time.sleep(1)
phone_number = "+919********4"
message = ["Hi Buddy😊"]
scheduled_time = "14:37"
Please Help what to do now??
The text was updated successfully, but these errors were encountered: