@@ -29,7 +29,7 @@ async def on_ready():
2929@bot .command (name = "profil" )
3030async 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" )
4141async 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