Either download this repository as tarball/zip or clone it with git.
npm install
cp config.sample.json config.json
Adjust the configuration inside config.json
to match your needs.
Grab yourself a Telegram Bot Token from @botfather.
For further help see Telegram Bot API.
If you successfully registered your bot insert the Token into your config.json
To search for images the bot needs access to Bings Image API.
Get yourself a API key at Bing Image Search API and insert it into your config.json
count
- Specifies from how many results the bot chooses a random image (default:1000
)market
- Choose the market where the results come from (default:en-en
)
In the bot section of the configuration file you may specify if the bot serves nsfw content or not.
Just run
node app.js