diff options
author | Brett Weiland <brett_weiland@bpcspace.com> | 2020-11-02 08:14:43 -0600 |
---|---|---|
committer | Brett Weiland <brett_weiland@bpcspace.com> | 2020-11-02 08:14:43 -0600 |
commit | 8a1b282df20e4e0ed1c426c11b35b7cb7432c137 (patch) | |
tree | 7c3da545c8f5f0683089385c93ddbe19f546b508 /post_bot.py | |
parent | c6413e5c0d2f04232e37391c8b5b62277562d065 (diff) |
new file: games_bot.py
modified: post_bot.py
new file: qs_to_list.py
Diffstat (limited to 'post_bot.py')
-rwxr-xr-x | post_bot.py | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/post_bot.py b/post_bot.py index ce189ff..61db359 100755 --- a/post_bot.py +++ b/post_bot.py @@ -25,6 +25,68 @@ key_pos = rp.text.find("site.my_key = \'") + len("site.my_key = ") key = re.search("site.my_key = \'(.*)\';", rp.text).groups()[0] +# automaticly generated from qs_to_list.py +levels = [[['1'], ['1'], ['1'], ['032']], +[['2'], ['0'], ['1'], ['30103']], +[['3'], ['1'], ['0'], ['12301210']], +[['4'], ['0'], ['0'], ['012123']], +[['5'], ['1'], ['0'], ['030321']], +[['6'], ['0'], ['1'], ['01032103']], +[['7'], ['0'], ['0'], ['103212']], +[['8'], ['0'], ['1'], ['12123010']], +[['9'], ['0'], ['0'], ['0123']], +[['10'], ['1'], ['0'], ['0']], +[['11'], ['0'], ['1'], ['20321010']], +[['12'], ['1'], ['1'], ['303230101']], +[['13'], ['0'], ['0'], ['012123012321212103']], +[['14'], ['1'], ['0'], ['2130']], +[['15'], ['0'], ['0'], ['030110310']], +[['16'], ['1'], ['0'], ['03212301230320123032']], +[['17'], ['1'], ['0'], ['2222011112321']], +[['18'], ['0'], ['0'], ['210103010323232']], +[['19'], ['1'], ['1'], ['32123032121302103032101']], +[['65'], ['1'], ['0'], ['2103230123']], +[['66'], ['1'], ['0'], ['230301230301']], +[['67'], ['0'], ['1'], ['3012301121231203012121203012123']], +[['68'], ['0'], ['0'], ['032103012']], +[['69'], ['0'], ['1'], ['30321032123232132103203210321232321210']], +[['70'], ['1'], ['1'], ['3012321032103012032103212']], +[['71'], ['0'], ['0'], ['030323030101013232103010123']], +[['72'], ['1'], ['1'], ['23212321321032313012123010132321231023032123030']], +[['73'], ['1'], ['0'], ['3030']]] + +def beat_games(): + rs.post('https://recolor.me/topic/1557621', data={ + 'key':key, + 'page':'topic', + 'action':'reply', + 'topic_id':'1557621', + 'reply_message':"Completing levels...", + 'box_color':'#0000ff', + 'post_color':'#0', + 'post_style':'0' + }) + for level in levels: + sleep(7); + rs.post('https://recolor.me/slide', data = { + 'page':'slide', + 'action':'complete', + 'level':level[0], + 'hflip':level[1], + 'vflip':level[2], + 'solution':level[3], + 'key':key}) + sleep(7) + rs.post('https://recolor.me/topic/1557621', data={ + 'key':key, + 'page':'topic', + 'action':'reply', + 'topic_id':'1557621', + 'reply_message':"Levels completed!", + 'box_color':'#0000ff', + 'post_color':'#0', + 'post_style':'0' + def acheive_limit(): uncaped = True check_space = 20 @@ -88,3 +150,19 @@ while True: cap_thread = Timer((desired_time - current_time).total_seconds()+1, acheive_limit) cap_thread.start() cap_thread.join() + +# level structure: +# 0: str hflip +# 1: str vflip +# 2: str steps + + +#rp = rs.post('https://recolor.me/', data = { +# 'page':'slide', +# 'action':'complete', +# 'level':'7', +# 'hflip':'1', +# 'vflip':'0', +# 'solution':'301232', +# 'key':key +# }) |