Once I find a good Node.js hoster where I can alter the unsplash npm module, this bot will be live again.
- What does this bot do?
The bot sends you a random image of a word you provide.
- How can I interact with the bot?
Simply start chatting with @Random_Image_Bot.
- What commands are available?
- /help - Provides basic information about the bot.
- /start - The inital command you send when starting chatting.
- /imageof {your-word} - Sends you a random image of {your-word}.
- Is the bot limited to Telegram?
Yes, the bot is available for Telegram only.
- telebot - Used to interact with the Telegram API
- unsplash-js - A wrapper for the Unsplash API
- node-fetch - A polyfill for the browser-native fetch API
Documentation can be found here.
- None
If you now an issue, you can submit it here.
To get the bot working, you will need to modify node_modules/unsplash-js/lib\unsplash.js the following way:
export toJson: exports.toJson = toJson
, on the very last line (right under the declaration of toJson())import module node-fetch: const fetch = require('node-fetch')
, somewhere at the top
The tracking via the UTM parameters in image.js is a requirement by Unsplash to get approval for production limit-rates of their API.