···25252626 // (Optional) A description of your feed
2727 // Ex: Top trending content from the whole network
2828- const description = 'Tweets from all the Alices.'
2828+ const description = 'Posts from all the Alices.'
29293030 // (Optional) The path to an image to be used as your feed's avatar
3131 // Ex: ~/path/to/avatar.jpeg
···4545 const agent = new AtpAgent({ service: 'https://bsky.social' })
4646 await agent.login({ identifier: handle, password })
47474848- // try {
4949- // await agent.api.app.bsky.feed.describeFeedGenerator()
5050- // } catch (err) {
5151- // throw new Error(
5252- // 'The bluesky server is not ready to accept published custom feeds yet',
5353- // )
5454- // }
4848+ try {
4949+ await agent.api.app.bsky.feed.describeFeedGenerator()
5050+ } catch (err) {
5151+ throw new Error(
5252+ 'The bluesky server is not ready to accept published custom feeds yet',
5353+ )
5454+ }
55555656 let avatarRef: BlobRef | undefined
5757 if (avatar) {
···7070 avatarRef = blobRes.data.blob
7171 }
72727373- await agent.api.com.atproto.repo.createRecord({
7373+ await agent.api.com.atproto.repo.putRecord({
7474 repo: agent.session?.did ?? '',
7575 collection: ids.AppBskyFeedGenerator,
7676 rkey: recordName,