marcomaroni-github / twitter-to-bluesky

Import all tweets exported from X/Twitter to a Bluesky account.
Other
139 stars 6 forks source link

TWITTER_HANDLE -> PAST_HANDLES #8

Closed Lucifer-is-my-pet closed 1 week ago

Lucifer-is-my-pet commented 1 week ago

looks like the env variable name was incorrect

marcomaroni-github commented 1 week ago

No the correct one si PAST_HANDLES (we have changed to support multiple past twitter handles), see the README.

Lucifer-is-my-pet commented 1 week ago

@marcomaroni-github well, yes, the PAST_HANDLES is the correct name to use in the env file but in the code you get process.env.TWITTER_HANDLE?.split(",");. there will be no TWITTER_HANDLE variable so const PAST_HANDLES is always undefined.

marcomaroni-github commented 1 week ago

Yes, sorry you are right. But please you must change the line of codes here as is

const PAST_HANDLES = process.env.PAST_HANDLES?.split(",");