This commit is contained in:
vineyardbovines
2026-02-26 13:22:34 -05:00
parent 423f1a7ad7
commit d5d3076dda
5 changed files with 283 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
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
)
}