Compare commits

..

No commits in common. "c8c6b2f40528128229632745add6c719a4a1ddaf" and "d3b4728c3c1a18ede0ba0d0797f3a2e271337582" have entirely different histories.

21
bot.py
View File

@ -2,13 +2,9 @@ import requests
from time import sleep from time import sleep
from tqdm import tqdm from tqdm import tqdm
global xc, yc
xc = 0 ; yc = 0
def draw(cords, color = "black"): def draw(cords, color = "black"):
global xc, yc
for i in tqdm(range(len(cords))): for i in tqdm(range(len(cords))):
payload = {'x': cords[i][1] + yc, 'y': cords[i][0] + xc, 'color': color } payload = {'x': cords[i][1], 'y': cords[i][0], 'color': color }
response = requests.post('http://pb.dmcraft.online', data=payload) response = requests.post('http://pb.dmcraft.online', data=payload)
@ -37,19 +33,6 @@ def fill(xy1, xy2):
res.append( [x, y] ) res.append( [x, y] )
return res return res
draw(fill([150,100], [200,150]), "red")
xc = 200
yc = 300
#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")