lunarflu HF staff commited on
Commit
0178191
1 Parent(s): f58d34f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -239,12 +239,15 @@ async def update_leaderboard(ctx):
239
 
240
 
241
 
242
- """
243
  @bot.command(name='send_message')
244
  async def send_message(ctx):
245
  channel = ctx.channel
246
- await channel.send("test")
247
- """
 
 
 
248
 
249
 
250
 
 
239
 
240
 
241
 
242
+
243
  @bot.command(name='send_message')
244
  async def send_message(ctx):
245
  channel = ctx.channel
246
+ leaderboard_data = [("User 1", 100), ("User 2", 80), ("User 3", 60)]
247
+ table = tabulate(leaderboard_data, headers=["User", "Score"], tablefmt="plain")
248
+ message = await channel.send(f"Leaderboard:\n```\n{table}\n```")
249
+
250
+
251
 
252
 
253