mirror of
https://github.com/Nick80835/microbot
synced 2025-08-29 05:29:16 +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")
|
||||
async def stickcolor(event):
|
||||
if not event.args:
|
||||
await event.reply(f"`Specify a valid color, use #colorhex or a color name.`")
|
||||
return
|
||||
|
||||
try:
|
||||
image = Image.new("RGBA", (512, 512), event.args)
|
||||
except:
|
||||
|
Loading…
x
Reference in New Issue
Block a user