Skip to content

Commit af7984a

Browse files
committed
Correctly link channels when users use !done and !undone
1 parent 005e7e5 commit af7984a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bot/ctf_model.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ async def done(self, owner, users):
644644
return [
645645
(
646646
self.ctf_id,
647-
f'{self.team.mention} :tada: "{self.name}" has been completed by {mentions}!',
647+
f"{self.team.mention} :tada: <#{cid}> has been completed by {mentions}!",
648648
),
649649
(None, "Challenge moved to done!"),
650650
]
@@ -711,7 +711,7 @@ async def undone(self):
711711
(None, f'Reopened "{self.name}" as not done'),
712712
(
713713
self.ctf_id,
714-
f"""{self.team.mention} "{self.name}" is now undone. :weary:""",
714+
f"""{self.team.mention} <#{cid}> is now undone. :weary:""",
715715
),
716716
]
717717

0 commit comments

Comments
 (0)