Skip to content

Commit 8b8afb6

Browse files
committed
Added points function
1 parent 0e87a25 commit 8b8afb6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

bot.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def embed_generator(
9999
@bot.command()
100100
async def ping(ctx):
101101
"""Check to see if bot is working. Also returns path of the script"""
102-
msg = f"pong from bot running at {dirname(__file__)}"
102+
msg = f"I'm alive! {ctx.message.author.mention} 🤗"
103103
print(msg)
104104
await ctx.send(msg)
105105

@@ -433,5 +433,12 @@ def fetch_spreadsheet(speadsheet_id: str):
433433
# Fetch points for each task
434434
points_dict: dict[str, int] = fetch_points_for_each_task()
435435

436+
# send this points list as message if the command is !cyscom points
437+
438+
@bot.command()
439+
@commands.has_any_role("Cabinet Member")
440+
async def points(ctx):
441+
await ctx.send(points_dict)
442+
436443
# Run the bot
437444
bot.run(getenv("BOT_TOKEN"))

0 commit comments

Comments
 (0)