1
0
Fork 0
mirror of synced 2024-06-21 12:00:16 +12:00

Added an error checking in case a tag was provided in the incorrect format

This commit is contained in:
Phxntxm 2016-08-04 10:49:24 -05:00
parent 567162268b
commit ecf36d59c9

View file

@ -36,7 +36,7 @@ class Tags:
Format to add a tag is !tag add <tag> - <result>"""
try:
tag = re.search("(.*) - (.*)",result).group(1).strip()
tag_result = "(.*) - (.*)",result).group(2).strip()
tag_result = re.search("(.*) - (.*)",result).group(2).strip()
except AttributeError:
await self.bot.say("Please provide the format for the tag in: !tag add <tag> - <result>")
return