diff --git a/jarvis/cogs/dbrand.py b/jarvis/cogs/dbrand.py index ab1146a..0162ebf 100644 --- a/jarvis/cogs/dbrand.py +++ b/jarvis/cogs/dbrand.py @@ -46,7 +46,11 @@ class DbrandCog(commands.Cog): @_db.command(name="shipping", aliases=["ship", "s"]) async def _shipping(self, ctx, *, search: str): if not re.match(r"^[A-Z- ]+$", search, re.IGNORECASE): - await ctx.send("Please use text to search for shipping.") + if re.match(f"^:flag_[a-z]{2}:$", search, re.IGNORECASE): + search = search.split("_")[1][:-1] + else: + await ctx.send("Please use text to search for shipping.") + return if len(search) > 2: matches = [ x["code"]