Skip to content

Commit 0c0d9fb

Browse files
committed
Fix accessing user token in checkping command
1 parent a3aa2be commit 0c0d9fb

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

bubbles/commands/check_ping.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
def check_ping(payload: Payload) -> None:
88
"""!check_ping [user] - Manually trigger a transcription check ping."""
99
tokens = payload.cleaned_text.split()
10-
11-
user_raw = tokens.get(1)
12-
user_filter = parse_user(user_raw) if user_raw is not None else None
10+
user_filter = parse_user(tokens[1]) if len(tokens) > 1 else None
1311

1412
transcription_check_ping(payload.get_channel(), user_filter=user_filter, start_now=True)
1513

0 commit comments

Comments
 (0)