We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e87a25 commit 8b8afb6Copy full SHA for 8b8afb6
bot.py
@@ -99,7 +99,7 @@ def embed_generator(
99
@bot.command()
100
async def ping(ctx):
101
"""Check to see if bot is working. Also returns path of the script"""
102
- msg = f"pong from bot running at {dirname(__file__)}"
+ msg = f"I'm alive! {ctx.message.author.mention} 🤗"
103
print(msg)
104
await ctx.send(msg)
105
@@ -433,5 +433,12 @@ def fetch_spreadsheet(speadsheet_id: str):
433
# Fetch points for each task
434
points_dict: dict[str, int] = fetch_points_for_each_task()
435
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
443
# Run the bot
444
bot.run(getenv("BOT_TOKEN"))
0 commit comments