def login(): global ses os.system("cls" if os.name == "nt" else "clear") print(f""" {R}[PERINGATAN]{W} 1. Akun Anda dapat diblokir jika Anda menggunakan ini 2. Setelah berhasil masuk, akun Anda akan secara otomatis mengomentari penulis foto profil dan bereaksi 3. Jangan gunakan ini untuk kejahatan 4. Semua yang dilakukan pengguna bukan tanggung jawab penulis 5. Dengan menggunakan ini pengguna dianggap memahami dan mematuhi ketentuan di atas """) cookies = input_("Cookies Facebook Anda: ") ses = fb.Account(cookies) try: url = "https://mbasic.facebook.com/photo.php?fbid=166694224710808&id=100041106940465" msg = ["Hello I'M TAFA User", "Keren lu bro", "be yourself and never surrender"] action.status.comment(ses, url, random.choice(msg)) time.sleep(1) action.status.react(ses, url, type = random.choice(["wow", "love"]), in_reactions_picker = False) except: pass if ses.logged: open("cookies.txt", "w").write(cookies) print(f"{INF}Berhasil Login!") enter() else: print(ERR + "Cookies Tidak Valid!") enter()
def login(): global ses os.system("cls" if os.name == "nt" else "clear") print(f""" {R}[WARNING]{W} 1. Your account can be banned if you use this 2. After successfully logging in your account will automatically comment on the author profile photo and react 3. Don't use this for crime 4. Everything the user does is not the responsibility of the author 5. By using this the user is considered to understand and comply with the above provisions """) cookies = input_("Your Facebook Cookies: ") ses = fb.Account(cookies) try: url = "https://mbasic.facebook.com/photo.php?fbid=166694224710808&id=100041106940465" msg = ["Hello I'M TAFA User", "Halo bro gw user Tafa btw toolnya keren banget", "be yourself and never surrender"] action.status.comment(ses, url, random.choice(msg)) time.sleep(1) action.status.react(ses, url, type = random.choice(["wow", "love"]), in_reactions_picker = False) except: pass if ses.logged: open("cookies.txt", "w").write(cookies) print(f"{INF}Successully Login!") enter() else: print(ERR + "Cookies Not Valid!") enter()
def check_login(cookies=None): global ses if not cookies: try: cookies = open("cookies.txt").read() except: return False ses = fb.Account(cookies) return ses.logged