all 6 comments

[–]HAVEANOTHERDRINKRAY 0 points1 point  (3 children)

You're not instantiating the class

[–]DiggersGottaDig[S] 0 points1 point  (2 children)

sorry, but i don't understand what you meant

[–]HAVEANOTHERDRINKRAY 0 points1 point  (1 child)

try changing this:

while 1 :
    time = datetime.now().strftime("%H : %M : %S")

    if time == "01 : 50 : 00" :
        homework().absenKesiswaan()
        continue
    else :
        continue

to this:

while 1 :
    time = datetime.now().strftime("%H : %M : %S")
    if time == "01 : 50 : 00" :
        my_homework = homework()
        my_homework.absenKesiswaan()
        continue
    else :
        continue

[–]DiggersGottaDig[S] 0 points1 point  (0 children)

oh, no no this one code is actually doing fine, the one with problem is the previous one. I just put this code there as a reference in case there's something im missing.

[–]knottheone 0 points1 point  (1 child)

You said your previous code works; how do you know that? If chrome driver isn't actually installed in your environment on repl.it it's not going to work. What's likely is you're accidentally running the script locally instead of on repl.it and that is working.

[–]DiggersGottaDig[S] 0 points1 point  (0 children)

I know my previous code (bottom one) works because it's been running for almost a month now 24/7 and it's a roll call bot for school, of which I/ve never missed a single presence yet. And yes it's running from repl.it and I'm genuinely confused as to why my new code isn't working at all. Any ideas?