Skip to content

Commit 8a49fe6

Browse files
committed
rename variable
1 parent 5fed4b0 commit 8a49fe6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.env.example

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ TWITTER_EMAIL= # Account email
7272
TWITTER_2FA_SECRET=
7373

7474
# Authentication cookies for Twitter session
75-
TWITTER_AUTH_TOKEN=
76-
TWITTER_CT0=
77-
TWITTER_GUEST_ID=
75+
TWITTER_COOKIES_AUTH_TOKEN=
76+
TWITTER_COOKIES_CT0=
77+
TWITTER_COOKIES_GUEST_ID=
7878

7979
TWITTER_POLL_INTERVAL=120 # How often (in seconds) the bot should check for interactions
8080
TWITTER_SEARCH_ENABLE=FALSE # Enable timeline search, WARNING this greatly increases your chance of getting banned

packages/client-twitter/src/base.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,9 @@ export class ClientBase extends EventEmitter {
261261
throw new Error("Twitter username not configured");
262262
}
263263

264-
const authToken = this.runtime.getSetting("TWITTER_AUTH_TOKEN");
265-
const ct0 = this.runtime.getSetting("TWITTER_CT0");
266-
const guestId = this.runtime.getSetting("TWITTER_GUEST_ID");
264+
const authToken = this.runtime.getSetting("TWITTER_COOKIES_AUTH_TOKEN");
265+
const ct0 = this.runtime.getSetting("TWITTER_COOKIES_CT0");
266+
const guestId = this.runtime.getSetting("TWITTER_COOKIES_GUEST_ID");
267267

268268
const createTwitterCookies = (authToken: string, ct0: string, guestId: string) =>
269269
authToken && ct0 && guestId

0 commit comments

Comments
 (0)