Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
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 |
|