Skip to content

Instantly share code, notes, and snippets.

@Justasic
Created October 19, 2013 02:12
Show Gist options
  • Save Justasic/7050919 to your computer and use it in GitHub Desktop.
Save Justasic/7050919 to your computer and use it in GitHub Desktop.
This is a patch for the facebook autopoker script at https://github.com/linuz/Facebook-Auto-Poker
--- FacebookAuto-Poker.py 2013-10-18 19:11:04.978590959 -0700
+++ FacebookAuto-Poker.py.old 2013-10-18 19:10:31.538591522 -0700
@@ -7,8 +7,8 @@
#############################################################################
FACEBOOK_USERNAME = ""
FACEBOOK_PASSWORD = ""
-import mechanize, time, os
-MAX_DELAY = 60
+import mechanize, time, os, sys
+MAX_DELAY = 25
delay = MAX_DELAY
totalPokes = 0
browser = mechanize.Browser()
@@ -33,7 +33,9 @@
browser.follow_link(text_regex="Poke back",nr=0)
tempPokeCount += 1
totalPokes += 1
- print "Poked! Total Pokes: " + str(totalPokes) + "\n"
+ if(totalPokes != 1):
+ sys.stdout.write("\033[1A\033[2K")
+ print "Poked! Total Pokes: " + str(totalPokes)
if (tempPokeCount != 0 and delay > 1): delay /= 2
if (tempPokeCount == 0 and delay < MAX_DELAY): delay *= 2
except:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment