Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.

Commit d048a4f

Browse files
committed
MOD | usage of colors variables instead of codes
1 parent 93af954 commit d048a4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ async def on_ready():
2929
@bot.command(name="profil")
3030
async def profil(ctx, arg):
3131
codingamer = client.get_codingamer(arg)
32-
embed = discord.Embed(title=codingamer.pseudo, url="https://www.codingame.com/profile/" + codingamer.public_handle, color=0xFF5733)
32+
embed = discord.Embed(title=codingamer.pseudo, url="https://www.codingame.com/profile/" + codingamer.public_handle, color=Color.orange)
3333
embed.add_field(name="Clash Of Code Global rank:", value=str(codingamer.get_clash_of_code_rank()) + " ème", inline=True)
3434
embed.add_field(name="Global Rank", value=str(codingamer.rank) + " ème", inline=True)
3535
embed.add_field(name="Level:", value=str(codingamer.level), inline=False)
@@ -40,7 +40,7 @@ async def profil(ctx, arg):
4040
@bot.command(name="game")
4141
async def game(ctx):
4242
coc = client.get_pending_clash_of_code()
43-
embed = discord.Embed(title="Click to join", url=coc.join_url, description="**Players online:**", color=0xFF5733)
43+
embed = discord.Embed(title="Click to join", url=coc.join_url, description="**Players online:**", color=Color.blue)
4444
embed.set_thumbnail(url="https://res.cloudinary.com/crunchbase-production/image/upload/c_lpad,f_auto,q_auto:eco,dpr_1/v1410916443/e1aka8oyy6vnsbrt8ogw.png")
4545
for player in coc.players:
4646
embed.add_field(name=player.pseudo, value="https://www.codingame.com/profile/" + player.public_handle)

0 commit comments

Comments
 (0)