Skip to content

Commit

Permalink
Fix accessing user token in checkping command
Browse files Browse the repository at this point in the history
  • Loading branch information
TimJentzsch committed Jun 26, 2023
1 parent a3aa2be commit 0c0d9fb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bubbles/commands/check_ping.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
def check_ping(payload: Payload) -> None:
"""!check_ping [user] - Manually trigger a transcription check ping."""
tokens = payload.cleaned_text.split()

user_raw = tokens.get(1)
user_filter = parse_user(user_raw) if user_raw is not None else None
user_filter = parse_user(tokens[1]) if len(tokens) > 1 else None

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

Expand Down

0 comments on commit 0c0d9fb

Please sign in to comment.