Commit c8cc355d authored by Trevor Cappallo's avatar Trevor Cappallo
Browse files

fix score display bug

parent 85df563f
......@@ -8,7 +8,7 @@ import random
from discord.ext import tasks, commands
from discord.ext.commands import Bot
winWords = ('annihilated', 'beat', 'won against', 'triumphed over', 'embarrassed', 'painted the court with', 'trounced', 'decisively won against', 'emasculated', 'eked out a win against', 'brushed off', 'destroyed', 'dominated', 'schooled')
winWords = ('annihilated', 'fumbled his way to a victory over', 'demolished', 'struggled valiantly to beat', 'handily won against', 'came out ahead against', 'one-upped', 'thrashed', 'thumped', 'eviscerated', 'made light work of', 'obliterated', 'managed to win against', 'somehow beat', 'beat', 'won against', 'triumphed over', 'embarrassed', 'painted the court with', 'trounced', 'decisively won against', 'emasculated', 'eked out a win against', 'brushed off', 'destroyed', 'dominated', 'schooled')
reScore = re.compile('(\d)/(\d)')
......@@ -109,6 +109,9 @@ async def status_task():
try:
nix += [ongoing]
score = currentGames[ongoing]['score']
if '--' in score:
continue
sets = [0, 0]
scoreLine = reScore.findall(score)
players = ongoing.split(" vs ")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment