mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
re-Fixed the screenshot command again
This commit is contained in:
parent
ecd09dee9f
commit
e4fb5b169e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue