Skip to content

angeluriot/Proverbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💭 Proverbot

Release Language Frameworks Size Open Source


This repository contains the source code of a bot that generate random French proverb images and post them on Twitter. (Inspired by InspiroBot)

You can see its Twitter account here: https://twitter.com/TheProverbot.



📋 Summary


🛠️ Install

  • Install the dependencies with:

     $ npm install
  • Create folders named data, generated and queue in the root of the project

  • Create a file named .env in the root of the project with the following content (see the .env.template file):

     DEEPL_KEY=<your DeepL API key>
     TWITTER_APP_KEY=<your Twitter app key>
     TWITTER_APP_SECRET=<your Twitter app secret>
     TWITTER_ACCESS_TOKEN=<your Twitter access token>
     TWITTER_ACCESS_SECRET=<your Twitter access secret>
    
  • Copy the contents of the example folder in the data folder (it's juste a example with only one image, one font and a few words, it's up to you to create your own data)

  • Build the project with:

     $ npm run build
  • Start the project:

    • To generate 10 images:

       $ npm run gen -- 10
    • To start the bot:

       $ npm run start

🧪 Tests


🙏 Credits

About

A bot that generate random french proverb images and post them on Twitter.

Topics

Resources

License

Stars

Watchers

Forks