mirror of
https://github.com/Nick80835/microbot
synced 2025-08-29 13:38:55 +00:00
add a no color check
This commit is contained in:
parent
12990fc931
commit
96dc87b459
@ -11,6 +11,10 @@ ldr = micro_bot.loader
|
|||||||
|
|
||||||
@ldr.add("color")
|
@ldr.add("color")
|
||||||
async def stickcolor(event):
|
async def stickcolor(event):
|
||||||
|
if not event.args:
|
||||||
|
await event.reply(f"`Specify a valid color, use #colorhex or a color name.`")
|
||||||
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
image = Image.new("RGBA", (512, 512), event.args)
|
image = Image.new("RGBA", (512, 512), event.args)
|
||||||
except:
|
except:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user