Skip to content

Commit

Permalink
tldr-bot: use BOT_USERNAME everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiaanspeck authored Sep 30, 2024
1 parent 5bd7130 commit c95164f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tldr_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def previous_comment(issue_id, identifier):

comments = resp.json()
for comment in comments:
if comment['user']['login'] == 'tldr-bot' and identifier in comment['body']:
if comment['user']['login'] == BOT_USERNAME and identifier in comment['body']:
return comment['id']
return None

Expand Down

0 comments on commit c95164f

Please sign in to comment.