fix imports
This commit is contained in:
4
main.py
4
main.py
@@ -6,6 +6,8 @@ from dataclasses import dataclass, field
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
import traceback
|
||||
from PIL import Image, ImageDraw
|
||||
from io import BytesIO
|
||||
|
||||
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:
|
||||
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))
|
||||
draw = ImageDraw.Draw(image)
|
||||
draw.rounded_rectangle([0, 0, 128, 128], radius=32, fill=args[0])
|
||||
|
||||
Reference in New Issue
Block a user