Skip to content

Commit

Permalink
Added points function
Browse files Browse the repository at this point in the history
  • Loading branch information
ezhil56x committed Jan 25, 2024
1 parent be6731a commit d782906
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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"))

0 comments on commit d782906

Please sign in to comment.