https://paste.pythondiscord.com/PFXQ
Hit the char limit and had to put it in a link.
In my mind if I can find a way to generate these outputs in a loop then I can just sub in those for my array indexes and crunch all of this into a singe loop:
when i = 0
then
x = 0
y = 1
when i = 1
then
x = 0
y = 2
when i = 2
then
x = 1
y = 2
for i in range(3):
if "99" not in [sorted_game[x][0], sorted_game[y][0]]:
score = data["diffs"][f"{sorted_game[x][0]}_{sorted_game[y][0]}"]
if score > 0:
msg = f"{msg}\n{score} for {friends[sorted_game[x][0]]} vs {friends[sorted_game[y][0]]}"
else:
msg = f"{msg}\n{abs(score)} for {friends[sorted_game[y][0]]} vs {friends[sorted_game[x][0]]}"
Any ideas?
