Add emoji support
This commit is contained in:
parent
4f56d9e856
commit
7ea2ad736d
1 changed files with 5 additions and 1 deletions
|
@ -46,7 +46,11 @@ class DbrandCog(commands.Cog):
|
||||||
@_db.command(name="shipping", aliases=["ship", "s"])
|
@_db.command(name="shipping", aliases=["ship", "s"])
|
||||||
async def _shipping(self, ctx, *, search: str):
|
async def _shipping(self, ctx, *, search: str):
|
||||||
if not re.match(r"^[A-Z- ]+$", search, re.IGNORECASE):
|
if not re.match(r"^[A-Z- ]+$", search, re.IGNORECASE):
|
||||||
|
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.")
|
await ctx.send("Please use text to search for shipping.")
|
||||||
|
return
|
||||||
if len(search) > 2:
|
if len(search) > 2:
|
||||||
matches = [
|
matches = [
|
||||||
x["code"]
|
x["code"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue