From d7829061aa5f947620592c0dd7de026b8574284d Mon Sep 17 00:00:00 2001 From: Ezhil Shanmugham Date: Thu, 25 Jan 2024 13:16:44 +0530 Subject: [PATCH] Added points function --- bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index a92aeda..4daca81 100644 --- a/bot.py +++ b/bot.py @@ -99,7 +99,7 @@ def embed_generator( @bot.command() async def ping(ctx): """Check to see if bot is working. Also returns path of the script""" - msg = f"I'm alive! {ctx.message.author.mention} 🤗" + msg = f"I'm alive!" print(msg) await ctx.send(msg) @@ -439,6 +439,7 @@ def fetch_spreadsheet(speadsheet_id: str): @commands.has_any_role("Cabinet Member") async def points(ctx): formatted_points = "\n".join([f"{task} - {points}" for task, points in points_dict.items()]) + await ctx.send(f"```{formatted_points}```") # Run the bot bot.run(getenv("BOT_TOKEN"))