Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/starter-templates/bots.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ BLUESKY_PASSWORD=
The below script will post 🙂 every three hours.

```TypeScript
import { BskyAgent } from '@atproto/api';
import { AtpAgent } from '@atproto/api';
import * as dotenv from 'dotenv';
import { CronJob } from 'cron';
import * as process from 'process';

dotenv.config();

// Create a Bluesky Agent
const agent = new BskyAgent({
const agent = new AtpAgent({
service: 'https://bsky.social',
})

Expand Down Expand Up @@ -70,4 +70,4 @@ You can deploy a simple bot for no or low cost on a variety of platforms, such a

## Rate Limits & Respecting Other Users

Keep in mind that bots should respect the network's [rate limits](/docs/advanced-guides/rate-limits). Automated bots that post to an account on an regular interval are welcome. If your bot interacts with other users, please only interact (like, repost, reply, etc.) if the user has tagged the bot account. It must be an opt-in interaction, or else your bot may be taken for spam.
Keep in mind that bots should respect the network's [rate limits](/docs/advanced-guides/rate-limits). Automated bots that post to an account on an regular interval are welcome. If your bot interacts with other users, please only interact (like, repost, reply, etc.) if the user has tagged the bot account. It must be an opt-in interaction, or else your bot may be taken for spam.
4 changes: 2 additions & 2 deletions docs/starter-templates/clients.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ Next, let's make a new file called `src/lib/api.ts` and add the following code:

```TypeScript
// src/lib/api.ts
import { BskyAgent } from "@atproto/api";
import { AtpAgent } from "@atproto/api";

export const agent = new BskyAgent({
export const agent = new AtpAgent({
// App View URL
service: "https://api.bsky.app",
// If you were making an authenticated client, you would
Expand Down