re-Fixed the screenshot command again

This commit is contained in:
nex 2023-01-03 14:33:22 +00:00
parent ecd09dee9f
commit e4fb5b169e

View file

@ -72,7 +72,7 @@ class OtherCog(commands.Cog):
await asyncio.sleep(render_time) await asyncio.sleep(render_time)
await ctx.edit(content="Taking screenshot...") await ctx.edit(content="Taking screenshot...")
domain = re.sub(r"https?://", "", website) domain = re.sub(r"https?://", "", website)
data = await asyncio.to_thread(driver.get_screenshot_as_png()) data = await asyncio.to_thread(driver.get_screenshot_as_png)
_io = io.BytesIO() _io = io.BytesIO()
_io.write(data) _io.write(data)
_io.seek(0) _io.seek(0)