Update getLeaderboard.py
This commit is contained in:
@@ -40,7 +40,7 @@ def create_leaderboard_image(board:str, weaponid="", weaponname="", server=""):
|
|||||||
|
|
||||||
font_size = 24
|
font_size = 24
|
||||||
font_color = (255, 255, 255)
|
font_color = (255, 255, 255)
|
||||||
monospace_font_path = r'C:\Users\larsh\Documents\GitHub\Sonar\Reuse\Fonts\GTAmericaMono.ttf'
|
monospace_font_path = r'Sonar\Reuse\Fonts\GTAmericaMono.ttf'
|
||||||
|
|
||||||
image = Image.new('RGB', (image_width, image_height), background_color)
|
image = Image.new('RGB', (image_width, image_height), background_color)
|
||||||
|
|
||||||
@@ -78,4 +78,4 @@ def create_leaderboard_message(board:str, weaponid="", weaponname="", server="")
|
|||||||
botmessage.set_image(url="attachment://leaderboard.png")
|
botmessage.set_image(url="attachment://leaderboard.png")
|
||||||
botmessage.set_footer(text=f"Brought to you by ToneAPI, created at {date} on {time}")
|
botmessage.set_footer(text=f"Brought to you by ToneAPI, created at {date} on {time}")
|
||||||
|
|
||||||
return botmessage, img_file
|
return botmessage, img_file
|
||||||
|
|||||||
Reference in New Issue
Block a user