This commit is contained in:
vineyardbovines
2026-03-05 14:45:53 -05:00
parent fe8e8ce7de
commit 6ba426f503
28 changed files with 515 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
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
)
}