├── .editorconfig ├── .env.example ├── .github └── workflows │ └── main.yml ├── .gitignore ├── .npmrc ├── .prettierignore ├── .prettierrc.cjs ├── bin ├── debug-answer-engine.ts ├── debug-scrape-url.ts ├── debug.ts ├── generate-test-fixtures.sh └── xbot.ts ├── license ├── package.json ├── pnpm-lock.yaml ├── readme.md ├── src ├── __snapshots__ │ └── entities.test.ts.snap ├── answer-engine.test.ts ├── answer-engine.ts ├── answer-engines │ ├── dexa-answer-engine.ts │ ├── openai-answer-engine.ts │ └── perplexity-answer-engine.ts ├── bot-error.ts ├── config.ts ├── create-answer-engine.ts ├── db.ts ├── entities.test.ts ├── entities.ts ├── fixtures.json ├── mentions.ts ├── moderations.test.ts ├── moderations.ts ├── parse-cli-args.ts ├── reset.d.ts ├── respond-to-new-mentions.ts ├── services │ ├── dexa-client.ts │ ├── openai-client.ts │ ├── scraper-client.ts │ └── twitter-client.ts ├── twitter-known-bots.ts ├── twitter-mentions.ts ├── twitter-utils.ts ├── twitter.ts ├── types.ts ├── utils.test.ts └── utils.ts ├── tsconfig.json └── vitest.config.ts /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/.editorconfig -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/.env.example -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/.npmrc -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/.prettierrc.cjs -------------------------------------------------------------------------------- /bin/debug-answer-engine.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/bin/debug-answer-engine.ts -------------------------------------------------------------------------------- /bin/debug-scrape-url.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/bin/debug-scrape-url.ts -------------------------------------------------------------------------------- /bin/debug.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/bin/debug.ts -------------------------------------------------------------------------------- /bin/generate-test-fixtures.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/bin/generate-test-fixtures.sh -------------------------------------------------------------------------------- /bin/xbot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/bin/xbot.ts -------------------------------------------------------------------------------- /license: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/license -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/readme.md -------------------------------------------------------------------------------- /src/__snapshots__/entities.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/src/__snapshots__/entities.test.ts.snap -------------------------------------------------------------------------------- /src/answer-engine.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/src/answer-engine.test.ts -------------------------------------------------------------------------------- /src/answer-engine.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/src/answer-engine.ts -------------------------------------------------------------------------------- /src/answer-engines/dexa-answer-engine.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/src/answer-engines/dexa-answer-engine.ts -------------------------------------------------------------------------------- /src/answer-engines/openai-answer-engine.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/src/answer-engines/openai-answer-engine.ts -------------------------------------------------------------------------------- /src/answer-engines/perplexity-answer-engine.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/src/answer-engines/perplexity-answer-engine.ts -------------------------------------------------------------------------------- /src/bot-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/src/bot-error.ts -------------------------------------------------------------------------------- /src/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/src/config.ts -------------------------------------------------------------------------------- /src/create-answer-engine.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/src/create-answer-engine.ts -------------------------------------------------------------------------------- /src/db.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/src/db.ts -------------------------------------------------------------------------------- /src/entities.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/src/entities.test.ts -------------------------------------------------------------------------------- /src/entities.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/src/entities.ts -------------------------------------------------------------------------------- /src/fixtures.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/src/fixtures.json -------------------------------------------------------------------------------- /src/mentions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/src/mentions.ts -------------------------------------------------------------------------------- /src/moderations.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/src/moderations.test.ts -------------------------------------------------------------------------------- /src/moderations.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/src/moderations.ts -------------------------------------------------------------------------------- /src/parse-cli-args.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/src/parse-cli-args.ts -------------------------------------------------------------------------------- /src/reset.d.ts: -------------------------------------------------------------------------------- 1 | import '@total-typescript/ts-reset' 2 | -------------------------------------------------------------------------------- /src/respond-to-new-mentions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/src/respond-to-new-mentions.ts -------------------------------------------------------------------------------- /src/services/dexa-client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/src/services/dexa-client.ts -------------------------------------------------------------------------------- /src/services/openai-client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/src/services/openai-client.ts -------------------------------------------------------------------------------- /src/services/scraper-client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/src/services/scraper-client.ts -------------------------------------------------------------------------------- /src/services/twitter-client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/src/services/twitter-client.ts -------------------------------------------------------------------------------- /src/twitter-known-bots.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/src/twitter-known-bots.ts -------------------------------------------------------------------------------- /src/twitter-mentions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/src/twitter-mentions.ts -------------------------------------------------------------------------------- /src/twitter-utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/src/twitter-utils.ts -------------------------------------------------------------------------------- /src/twitter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/src/twitter.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/utils.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/src/utils.test.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/src/utils.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dexaai/xbot/HEAD/vitest.config.ts --------------------------------------------------------------------------------