Skip to content

Commit 5334f74

Browse files
change leaderboard-ref
1 parent d83f7e3 commit 5334f74

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

bot.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def check_if_required_env_variables_are_present():
4949
"""The current leaderboard act"""
5050

5151

52-
leaderboard_ref = db.reference("vitcc").child("owasp").child(current_act)
52+
leaderboard_ref = db.reference("vitcc").child("owasp").child(f"leaderboard-act{current_act}")
5353

5454
# project_ref = base_ref.child("projects")
5555
# certificate_ref = base_ref.child("certificates")
@@ -122,8 +122,8 @@ async def sum(ctx, numOne: int, numTwo: int):
122122

123123
@bot.command()
124124
@commands.has_any_role("Cabinet Member")
125-
async def add_data(ctx, name: str, rating: int = 0, contributions: int = 0):
126-
f"""Add data to the leaderboard. Call it by {command_prefix} add_data "name" rating contribution"""
125+
async def add_member(ctx, name: str, rating: int = 0, contributions: int = 0):
126+
f"""Add data to the leaderboard. Call it by {command_prefix} add_member "name" rating contribution"""
127127
try:
128128
data = leaderboard_ref.get()
129129
name = name.strip()
@@ -201,6 +201,7 @@ async def add_recruits(ctx):
201201
@bot.command()
202202
@commands.has_any_role("Cabinet Member")
203203
async def set_points(ctx, name: str, rating=0, contributions=0):
204+
f"""Specifically set a member's points. Call it by {command_prefix} set_points "name" rating contribution"""
204205
try:
205206
data = leaderboard_ref.get()
206207
name = name.strip()

0 commit comments

Comments
 (0)