From 96dc87b45998c31eecc17f55e3d45d66baaa9311 Mon Sep 17 00:00:00 2001 From: Nick80835 Date: Sun, 3 May 2020 10:46:02 -0400 Subject: [PATCH] add a no color check --- ubot/modules/sticklet.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ubot/modules/sticklet.py b/ubot/modules/sticklet.py index 6110ab5..155d6d9 100644 --- a/ubot/modules/sticklet.py +++ b/ubot/modules/sticklet.py @@ -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: