Twitter bot that generates pokemons based on the users prompts that quote the account.
When a user post a tweet quoting the bot account followed by a text message, it generates a new post using the user message as prompt for the Text-To-Pokemon model, and then the account post a new tweet using the generated Pokemon.
NodeJs >= 15
MongoDB >= 4
Example of a generated Tweet:
Try it out at @pokeGenAI
Create a new .env file based on env.default on the root folder and set up your credentials on it, then you are ready to launch the bot
npm install
npm start| Environment Key | Description | Sample Value |
|---|---|---|
| DDBB_HOST | Host of the MongoDB | Eg: localhost:27017 |
| DDBB_USER | MongoDB username | Left it empty if is not set |
| DDBB_PASS | MongoDB user password | Left it empty if is not set |
| DDBB_NAME | Name of the MongoDB database | pokeGenAI |
| REPLICATE_TOKEN | Replicate.com API TOKEN | (from Replicate.com) |
| API_KEY | Twitter consumer key | (from Twitter Developers) |
| API_SECRET | Twitter consumer secret | (from Twitter Developers) |
| BEARER | Twitter access token | (from Twitter Developers) |
| ACCESS_TOKEN | Twitter access secret | (from Twitter Developers) |
| ACCESS_TOKEN_SECRET | Token of telegram bot | (from Twitter Developers) |
| ACCOUNT_USERNAME | Telegram chat ID | The user name of your account (include the @) |
Contributions are always welcome!
