Search for images on Flickr for junk food (curry, ramen, etc.) and return one at random. Australian BOTs that throw away messages sent by users without reading them (Sometimes unrelated images are returned)
Simple configuration without using database or queue. ~~ The Let's encrypt certificate still didn't seem to work. ~~ ↑ It became available from 4/22.
https://github.com/muk-ai/meshi-tero-linebot
The main processing is in the following file.
falcon/meshi-tero-bot/linebot.py
I was thinking of making a BOT that returns an image because of the characteristics of the interface called LINE. What to do with the important image, if you fetch it properly, it will infringe the copyright, so Whether to receive an image from the user and process it, or receive a keyword to generate it, what to do As I expected, the Flickr API specifies an image of a Creative Commons license. I found that I could get it, so I decided to use it.
It seems that it can be improved so as not to be ashamed of the name of rice terrorism.
--Return the image to all registered users when there is a comment to the BOT --Return images to registered users continuously at night -~~ It seems that you can't summon a BOT to the LINE group ~~ (´ ・ ω ・ `)
Recommended Posts