Commit 32f231c4 authored by Trevor Cappallo's avatar Trevor Cappallo
Browse files

aesthetic indentation stuff

parent c8cc355d
......@@ -8,7 +8,7 @@ import random
from discord.ext import tasks, commands
from discord.ext.commands import Bot
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')
winWords = ('annihilated', 'fumbled his way to a victory over', 'demolished', 'struggled valiantly and wore down', '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)')
......@@ -98,7 +98,7 @@ async def status_task():
games = info['games']
out=[]
nix=[]
previewStrings = ('None', 'Service', 'Service + Rally', 'All + Danger Zone', 'All + Danger Zone + Aiming')
previewStrings = ('No preview', 'Service', 'Service + Rally', 'All + Danger Zone', 'All + Danger Zone + Aiming')
skillStrings = ('Free', 'Fair', 'Realistic')
controlStrings = ('Simulation', 'Arcade', 'Elite')
......@@ -130,7 +130,7 @@ async def status_task():
else:
continue
s = s.replace("/", "-")
out += [f"{winner} {random.choice(winWords)} {loser}. Final score: `{s}`"]
out += [f"` `_{winner} {random.choice(winWords)} {loser}. Final score: {s}._"]
except Exception as exc:
pprint.pprint(exc)
......@@ -143,11 +143,12 @@ async def status_task():
if game['ip']=='0' and ' vs ' in game['name']:
if game['name'] not in currentGames.keys():
players = game['name'].split(' vs ')
s = f"{players[0]} started a game with {players[1]}."
s = f"` `_{players[0]} started a game with {players[1]}._"
currentGames[game['name']] = game
else:
try:
s = f"{game['name']} (elo: `{game['elo']}`, rep: `{game['reputation']}%`) wants to play a `{game['game_info']['nb_set']}-set` match. (Preview: `{previewStrings[game['game_info']['preview']]}`. Control: `{controlStrings[game['game_info']['control_mode']]}`. Skill: `{skillStrings[game['game_info']['skill_mode']]}`.)"
# s = f"{game['name']} (elo: `{game['elo']}`, rep: `{game['reputation']}%`) wants to play a `{game['game_info']['nb_set']}-set` match. (Preview: `{previewStrings[game['game_info']['preview']]}`. Control: `{controlStrings[game['game_info']['control_mode']]}`. Skill: `{skillStrings[game['game_info']['skill_mode']]}`.)"
s = f"**{game['name']}** (elo: `{game['elo']}`, rep: `{game['reputation']}%`) wants to play a `{game['game_info']['nb_set']}-set` match (using `{previewStrings[game['game_info']['preview']]}` / `{controlStrings[game['game_info']['control_mode']]}` / `{skillStrings[game['game_info']['skill_mode']]}`)"
except:
pprint.pprint(game)
s = ""
......
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