From 4f6c2190d6def74c28c5e793d5899b409f928eed Mon Sep 17 00:00:00 2001 From: justuser Date: Sat, 25 Nov 2023 16:39:10 +0300 Subject: [PATCH] Delete 'bot.py' --- bot.py | 65 ---------------------------------------------------------- 1 file changed, 65 deletions(-) delete mode 100644 bot.py diff --git a/bot.py b/bot.py deleted file mode 100644 index a15f0a7..0000000 --- a/bot.py +++ /dev/null @@ -1,65 +0,0 @@ -import requests -from time import sleep -from tqdm import tqdm - -global xc, yc -xc = 0 ; yc = 0 - -def gcolor(x, y): - response = requests.get(f'http://pb.gulyaipole.fun/?get_color={x},{y}') - return response.text - -def draw(cords, color = "black"): - global xc, yc - for i in tqdm(range(len(cords))): - sleep(0.01) - try: - color = cords[i][2] - except: - pass - - #if str(gcolor(cords[i][1], cords[i][0])) != color: - if True: - payload = {'x': cords[i][1] + yc, 'y': cords[i][0] + xc, 'color': color } - - response = requests.post('http://pb.gulyaipole.fun/', data=payload) - #response = requests.post('http://127.0.0.1:3333', data=payload) - - while str(response) != "": - response = requests.post('http://pb.gulyaipole.fun/', data=payload) - print("Error, retrying...") - sleep(0.1) - print("DONE!") - -def linex(y, x1, x2): - res = [] - for i in range(x1, x2+1): - res.append( [i,y] ) - return res - -def liney(x, y1, y2): - res = [] - for i in range(y1, y2+1): - res.append( [x,i] ) - return res - -def fill(xy1, xy2): - res = [] - for x in range(xy1[0], xy2[0] + 1): - for y in range(xy1[1], xy2[1] + 1): - res.append( [x, y] ) - return res - - - -''' -#Russian flag -draw(fill([300,300], [330, 300])) -draw(fill([300,330], [330, 330])) -draw(fill([300,300], [300, 330])) -draw(fill([330,300], [330, 330])) - -draw(fill([301,321], [329, 329]), "white") -draw(fill([301,310], [329, 320]), "blue") -draw(fill([301,301], [329, 310]), "red") -'''