Skip to content

Commit

Permalink
Ignore slackbot.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Grieser committed Jan 7, 2025
1 parent 478ed74 commit 4c53f4c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,10 @@ async def update_user_cache(app: AsyncApp) -> None:
response = await app.client.users_list()
users = response['members']
for user in users:
if not user.get('deleted') and not user.get('is_bot', False) and not user.get("is_restricted", False):
if not user.get('deleted') and \
not user.get('is_bot', False) and \
not user.get('is_restricted', False) and \
user.get('id', '') != 'USLACKBOT':
user_id = user.get('id', '')
user_name = normalize_id(user.get('name', ''))
user_name_normalized = normalize_user_name(user_name)
Expand Down

0 comments on commit 4c53f4c

Please sign in to comment.