a small yet quite smart twitter ai bot. it's very happy too it can search the web now too.
requirements:
- bun
- twitter auth token
- openai API key
usage:
- get a vps or any server that can run bun
- clone the repo and install bun
- create a
.datafolder - set up your
.envwith this:
TWITTER_AUTH_TOKEN=...
OPENAI_API_KEY=...
the TWITTER_AUTH_TOKEN is your twitter session cookie.
- run the bot with
bun run start. if you want it to run forever, use a process manager likepm2orforever.
to install dependencies:
bun installto run:
bun run startthis project was created using bun init in bun. bun is a fast all-in-one JavaScript runtime.