de toute facon il est useless

This commit is contained in:
piair 2023-06-17 17:03:49 +02:00
parent 1042fcf3cc
commit d49c8031a1
1 changed files with 0 additions and 39 deletions

39
test.py
View File

@ -1,39 +0,0 @@
import logging
import undetected_chromedriver as uc
from pyvirtualdisplay.smartdisplay import SmartDisplay
from discord import Colour, Embed, File, RequestsWebhookAdapter, Webhook
from time import sleep
webhookFailure = Webhook.from_url("https://canary.discord.com/api/webhooks/1079058123588915283/Z6lDKBF6Wvi8zf6ld_Mkxb9vCPyulIKl_7oXrdkki1uHHTOQWce-jOOTSMchsJNJIvP8", adapter=RequestsWebhookAdapter())
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello_world():
return "<p>Hello, World!</p>"
def temp():
display = SmartDisplay(size=(2000, 1000))
display.start()
driver = uc.Chrome()
driver.get('https://piair.xyz') # or any other website
sleep(10)
driver.save_screenshot("screenshot.png")
embed = Embed(
title="uéuéué la V6",
description="OKAY",
colour=Colour.green(),
)
file = File("screenshot.png")
webhookFailure.send(embed=embed, username="error", file=file)
embed.set_image(url="attachment://screenshot.png")
driver.close()
display.stop()