fix imports

This commit is contained in:
tema5002
2026-05-23 14:44:56 +03:00
parent 9adb1c5754
commit 30755a5aaf

View File

@@ -6,6 +6,8 @@ from dataclasses import dataclass, field
import discord import discord
from discord.ext import commands from discord.ext import commands
import traceback import traceback
from PIL import Image, ImageDraw
from io import BytesIO
bot = commands.Bot(command_prefix="\0", intents=discord.Intents.all()) bot = commands.Bot(command_prefix="\0", intents=discord.Intents.all())
@@ -485,8 +487,6 @@ async def addcolor(args: list[str], message: discord.Message) -> tuple[str, bool
if len(args) != 1: if len(args) != 1:
return "i dont understand this command", True return "i dont understand this command", True
from PIL import Image, ImageDraw
from io import BytesIO
image = Image.new("RGBA", (128, 128), (0, 0, 0, 0)) image = Image.new("RGBA", (128, 128), (0, 0, 0, 0))
draw = ImageDraw.Draw(image) draw = ImageDraw.Draw(image)
draw.rounded_rectangle([0, 0, 128, 128], radius=32, fill=args[0]) draw.rounded_rectangle([0, 0, 128, 128], radius=32, fill=args[0])