CodeF0x / picy

NO LONGER RUNNING AND MAINTAINED! 🖼️ A telegram bot sending a random image related to a given keyword.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This bot is no longer running and maintained, even though the bot account still exists.

Once I find a good Node.js hoster where I can alter the unsplash npm module, this bot will be live again.

FAQ

  • 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.

Used Node.js modules

  • 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

Documentation can be found here.

Known issues

  • None

If you now an issue, you can submit it here.

Other

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

Tracking

The tracking via the UTM parameters in image.js is a requirement by Unsplash to get approval for production limit-rates of their API.

About

NO LONGER RUNNING AND MAINTAINED! 🖼️ A telegram bot sending a random image related to a given keyword.

License:MIT License


Languages

Language:JavaScript 100.0%