Skip to content

Commit

Permalink
rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
tcm390 committed Feb 5, 2025
1 parent 5fed4b0 commit 8a49fe6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ TWITTER_EMAIL= # Account email
TWITTER_2FA_SECRET=

# Authentication cookies for Twitter session
TWITTER_AUTH_TOKEN=
TWITTER_CT0=
TWITTER_GUEST_ID=
TWITTER_COOKIES_AUTH_TOKEN=
TWITTER_COOKIES_CT0=
TWITTER_COOKIES_GUEST_ID=

TWITTER_POLL_INTERVAL=120 # How often (in seconds) the bot should check for interactions
TWITTER_SEARCH_ENABLE=FALSE # Enable timeline search, WARNING this greatly increases your chance of getting banned
Expand Down
6 changes: 3 additions & 3 deletions packages/client-twitter/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,9 @@ export class ClientBase extends EventEmitter {
throw new Error("Twitter username not configured");
}

const authToken = this.runtime.getSetting("TWITTER_AUTH_TOKEN");
const ct0 = this.runtime.getSetting("TWITTER_CT0");
const guestId = this.runtime.getSetting("TWITTER_GUEST_ID");
const authToken = this.runtime.getSetting("TWITTER_COOKIES_AUTH_TOKEN");
const ct0 = this.runtime.getSetting("TWITTER_COOKIES_CT0");
const guestId = this.runtime.getSetting("TWITTER_COOKIES_GUEST_ID");

const createTwitterCookies = (authToken: string, ct0: string, guestId: string) =>
authToken && ct0 && guestId
Expand Down

0 comments on commit 8a49fe6

Please sign in to comment.