From 796ae55ffd21e44efe27dc28949c51514d3a6e02 Mon Sep 17 00:00:00 2001 From: phxntxm Date: Fri, 5 Aug 2016 17:00:16 -0500 Subject: [PATCH] Imported re for regex use --- cogs/tags.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cogs/tags.py b/cogs/tags.py index bd20b00..16e3ad5 100644 --- a/cogs/tags.py +++ b/cogs/tags.py @@ -1,6 +1,7 @@ from discord.ext import commands from .utils import config from .utils import checks +import re class Tags: @@ -35,8 +36,8 @@ class Tags: """Use this to add a new tag that can be used in this server Format to add a tag is !tag add - """ try: - tag = re.search("(.*) - (.*)",result).group(1).strip() - tag_result = re.search("(.*) - (.*)",result).group(2).strip() + tag = re.search("(.*) - (.*)", result).group(1).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 - ") return