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.
-
Install the dependencies with:
$ npm install
-
Create folders named
data
,generated
andqueue
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 thedata
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
-
- Angel Uriot : Creator of the project.