I made a LINE BOT that returns a terrorist image using the Flickr API

What this bot does

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 meshi-tero-linebot-screenshot.png (Sometimes unrelated images are returned)

QR code

meshi-tero-linebot-qr.png

environment

Simple configuration without using database or queue. ~~ The Let's encrypt certificate still didn't seem to work. ~~ ↑ It became available from 4/22.

code

https://github.com/muk-ai/meshi-tero-linebot The main processing is in the following file. falcon/meshi-tero-bot/linebot.py

Things to consider

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.

What you can do

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

I made a LINE BOT that returns a terrorist image using the Flickr API
I made a LINE BOT that returns parrots with Go
I made a Line bot that guesses the gender and age of a person from an image
I made a Chatbot using LINE Messaging API and Python
[Python] I made a Line bot that randomly asks English words.
I made a slack bot that notifies me of the temperature
I made a Chatbot using LINE Messaging API and Python (2) ~ Server ~
I made a stamp substitute bot with line
I made a LINE Bot with Serverless Framework!
[Python] I made a bot that tells me the current temperature when I enter a place name on LINE
I made a Line Bot that uses Python to retrieve unread Gmail emails!
I made a LINE Bot that sends recommended images every day on time
[Python] I made a LINE Bot that detects faces and performs mosaic processing.
In Python, I made a LINE Bot that sends pollen information from location information.
[AWS] I made a reminder BOT with LINE WORKS
I made a household account book bot with LINE Bot
I made a LINE BOT with Python and Heroku
It seems that the Messaging API has been newly released from LINE, so I made a BOT that just analyzes morphological elements as usual.
I made a discord bot
Create a real-time auto-reply bot using the Twitter Streaming API
I made a dot picture of the image of Irasutoya. (part1)
I made a VGG16 model using TensorFlow (on the way)
I made a dot picture of the image of Irasutoya. (part2)
I made an original program guide using the NHK program guide API.
I wrote a script that splits the image in two
[AWS] I made a reminder BOT with LINE WORKS (implementation)
I built an application with Lambda that notifies LINE of "likes" using the Qiita API
I wrote a Python script that exports all my posts using the Qiita API v2
I made an API with Docker that returns the predicted value of the machine learning model
I made a Line-bot using Python!
I made a wikipedia gacha bot
I tried using the checkio API
Create an API that returns data from a model using turicreate
I made a program that solves the spot the difference in seconds
I created a Python library to call the LINE WORKS API
I made a Twitter bot that mutters Pokemon caught by #PokemonGO
I made a Twitter Bot with Go x Qiita API x Lambda
I made an AI that crops an image nicely using Salience Map
[LINE Messaging API] Create a BOT that connects with someone with Python
I made a Discord chat reading bot by imitating the appearance
I made a program that automatically calculates the zodiac with tkinter
I made a Python wrapper library for docomo image recognition API.
[Kaggle] I made a collection of questions using the Titanic tutorial
[Python] I tried to make a simple program that works on the command line using argparse.
I made my own research tool using the legal API [Smart Roppo]
I made a calendar that automatically updates the distribution schedule of Vtuber
I tried using Twitter api and Line api
I started to work at different times, so I made a bot that tells me the time to leave
A class that hits the DMM API
I made a music bot using discord.py and Google Drive API (tested with Docker → deployed to Heroku)
I tried drawing a line using turtle
I made a Discord bot in Python that translates when it reacts
Beginner: I made a launcher using dictionary
I tried to make "Sakurai-san" a LINE BOT with API Gateway + Lambda
I made a simple timer that can be started from the terminal
I made a library konoha that switches the tokenizer to a nice feeling
I made a LINE bot that tells me the type and strength of Pokemon in the Galar region with Heroku + Flask + PostgreSQL (Heroku Postgres)
I made an image discrimination (cifar10) model using a convolutional neural network.
I tried using the BigQuery Storage API
I want to create an API that returns a model with a recursive relationship in the Django REST Framework
Hanashi who became a read through BOT when trying to make a morphological analysis BOT using the popular LINE BOT API