So you want to make your own AI, huh?
This isn't for the faint of heart. You're gonna need to learn how to run a Node.js application and edit some text files.
https://docs.npmjs.com/downloading-and-installing-node-js-and-npm
- Copy .env.example to .env and fill in the appropriate values
- Edit the TWITTER environment variables to add your bot's username and password
- Check out the file
src/core/defaultCharacter.ts
- you can modify this - You can also load characters with the
--charaters=<path>
and run multiple bots at the same time.
You might need these
npm install --include=optional sharp
You can run Llama 70B or 405B models by setting the XAI_MODEL
environment variable to meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo
or meta-llama/Meta-Llama-3.1-405B-Instruct
You can run Grok models by setting the XAI_MODEL
environment variable to grok-beta
You can run OpenAI models by setting the XAI_MODEL
environment variable to gpt-4o-mini
or gpt-4o
For help with setting up your Discord Bot, check out here: https://discordjs.guide/preparations/setting-up-a-bot-application.html