mirror of
https://github.com/snachodog/tok-to-insta-follower-bridge.git
synced 2025-09-12 23:23:31 -06:00
🧪 add client test scripts
This commit is contained in:
20
scripts/client.ts
Normal file
20
scripts/client.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { BskyClient } from "../src/lib/bskyClient"
|
||||
|
||||
const searchBskyUsers = async () => {
|
||||
const agent = await BskyClient.createAgent({
|
||||
identifier: process.env.BSKY_IDENTIFIER as string,
|
||||
password: process.env.BSKY_PASSWORD as string,
|
||||
})
|
||||
|
||||
const result = await agent.searchUser({
|
||||
term: "llamaindex",
|
||||
limit: 3,
|
||||
})
|
||||
|
||||
return result
|
||||
}
|
||||
|
||||
(async () => {
|
||||
const result = await searchBskyUsers()
|
||||
console.log(result)
|
||||
})()
|
Reference in New Issue
Block a user