Skip to content

Twitter bot that generates pokemons based on the users prompts that quote the account

Notifications You must be signed in to change notification settings

MCheca/Twitter-Pokemon-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter-Pokemon-Generator

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.

Prerequistes

NodeJs >= 15

MongoDB >= 4

Screenshots

Example of a generated Tweet:

App Screenshot

Try it out at @pokeGenAI

Installation

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

Env variables

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 @)

Contributing

Contributions are always welcome!

Authors

About

Twitter bot that generates pokemons based on the users prompts that quote the account

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published