Files
bsky-social-app/src/lib/bots.ts
T
vineyardbovines 6ba426f503 linting
2026-03-05 14:45:53 -05:00

11 lines
260 B
TypeScript

import {type ComAtprotoLabelDefs} from '@atproto/api'
export function isBotAccount(profile: {
did: string
labels?: ComAtprotoLabelDefs.Label[]
}): boolean {
return (
profile.labels?.some(l => l.val === 'bot' && l.src === profile.did) ?? false
)
}