Skip to content

Commit 0a14fa9

Browse files
committed
feature: add farcaster dry run option
1 parent e791b22 commit 0a14fa9

File tree

1 file changed

+8
-0
lines changed
  • packages/client-farcaster/src

1 file changed

+8
-0
lines changed

packages/client-farcaster/src/post.ts

+8
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,14 @@ export class FarcasterPostManager {
119119
content = content.slice(0, content.lastIndexOf("."));
120120
}
121121

122+
123+
if (this.runtime.getSetting("FARCASTER_DRY_RUN") === "true") {
124+
elizaLogger.info(
125+
`Dry run: would have cast: ${content}`
126+
);
127+
return;
128+
}
129+
122130
try {
123131
const [{ cast }] = await sendCast({
124132
client: this.client,

0 commit comments

Comments
 (0)