diff --git a/main.py b/main.py index b002e12..80f1bef 100755 --- a/main.py +++ b/main.py @@ -72,7 +72,7 @@ async def state(ctx): # !co2 @HobbyBot.command(description="co2 levels") -async def co2(ctx, where='hoofdruimte'): +async def co2(ctx, where="hoofdruimte"): async with ctx.typing(): try: msg = await mqtt_get_one(f"bitlair/climate/{where}/co2_ppm") @@ -115,7 +115,7 @@ async def np(ctx): # !bottleclip @HobbyBot.command(description="Generate a bottle-clip STL file suitable for printing") -async def bottleclip(ctx, icon: str, ears: bool = False): +async def bottleclip(ctx, icon: str = "", ears: bool = False): git_api = "https://git.bitlair.nl/api/v1" owner = "bitlair" repo = "bottle-clip" @@ -139,7 +139,9 @@ async def bottleclip(ctx, icon: str, ears: bool = False): "pixel-cats/standing-right.svg", } if icon not in icons: - await ctx.reply(f"arg1 must be one of {', '.join(icons)}") + await ctx.reply( + f"usage: `!bottleclip []`\n* `icon` must be one of {', '.join(icons)}" + ) return async with ctx.typing():