2
0
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:
Nick80835 2020-05-03 10:46:02 -04:00
parent 12990fc931
commit 96dc87b459

View File

@ -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: