Lowercase code fix

This commit is contained in:
Roberto Anic Banic 2017-12-04 10:54:15 +01:00
parent 9031f4e947
commit 2e65a7abec

2
bot.py
View File

@ -35,7 +35,7 @@ async def on_message(message: Message):
return
codelist = []
for matcher in re.finditer(pattern, message.content):
code = matcher.group(0)
code = str(matcher.group(0)).upper()
if code not in codelist:
codelist.append(code)
print(code)