[JAVA] [LINE @] I tried to make a Japanese calendar Western calendar conversion BOT [Messaging API]

Introduction of LINE BOT

I was wondering if I could make something using the LINE Messaging API, so I created a BOT ** that converts the Japanese calendar to the Western calendar and the Western calendar to the Japanese calendar. This year is the year of Heisei ... and I feel like I'm googled about three times a year, so if you remember this BOT and use it at that time. The method of adding BOT to LINE is also described below.

screenshot

Everything you can do with one image fits in ^^;

LINE QR code for adding friends

Start LINE → Add friend → QR code You can add a BOT to your friends by scanning the QR code from.

LINE_WarekiSeirekiBot_QRcode.png

Alternatively, you can also click the add friend button below.

Add friend

Easy to use

Add it to your LINE friends and talk to them in the talk room. Type help and the bot will return an easy way to use it.

If you want to convert from the Western calendar to the Japanese calendar

If you want to convert from the Japanese calendar to the Western calendar

--2017 --Showa 54 If you talk to them, they will convert it to the Christian era and return it.

If you want to know the current Western / Japanese calendar

--Now

Technical information

I'm likely to get angry if it's just a promotion ^^; A little technical information on BOT. (Tips for Messaging API will be in a separate article.)

Source code

Since it is published on GitHub, please send me a PR if you add functions or fix bugs. (Spring Boot application.)

[asksaito/wareki-seireki-linebot] https://github.com/asksaito/wareki-seireki-linebot

Fork original repository [line/line-bot-sdk-java] https://github.com/line/line-bot-sdk-java

From the original repository, I'm only playing with a project called sample-spring-boot-echo. The project name remains sample. ..

The IDE may be anything, but I used STS. https://spring.io/tools/sts

If it is left as it is, a compile error will occur in Getter / Setter, so please insert Lombok. http://mmts1007.hatenablog.jp/entry/2015/10/15/204400

Where to deploy the application

I'm deploying to Heroku as described in the LINE BOT SDK sample. (Free plan) With the free plan, if you do not access the server for a while, it will go into sleep mode. Sometimes I talk to a bot and it doesn't respond because I'm sleeping.

Reference site

Spring Tool Suite (STS) Reduce the amount of code with Lombok! Heroku.com

Recommended Posts

[LINE @] I tried to make a Japanese calendar Western calendar conversion BOT [Messaging API]
I tried to make a Web API that connects to DB with Quarkus
I made a virtual currency arbitrage bot and tried to make money
I tried to create a LINE clone app
I tried to decorate the simple calendar a little
I tried to make a login function in Java
I tried adding a separator line to TabLayout on Android
I tried using Hotwire to make Rails 6.1 scaffold a SPA
I tried to make a client of RESAS-API in Java
Easy to make LINE BOT with Java Servlet Part 2: I tried image messages and templates
I want to make a button with a line break with link_to [Note]
[Unity] I tried to make a native plug-in UniNWPathMonitor using NWPathMonitor
[Java] I tried to make a maze by the digging method ♪
I tried to make a group function (bulletin board) with Rails
I tried to make a parent class of a value object in Ruby
I tried to make a simple face recognition Android application using OpenCV
How to make a Java calendar Summary
Make Ruby Kurosawa with Ruby (Ruby + LINE Messaging API)
I tried a calendar problem in Ruby
[iOS] I tried to make a processing application like Instagram with Swift
How to make a Discord bot (Java)
I tried to summarize the Stream API
I tried to make a talk application in Java using AI "A3RT"
I tried to make a machine learning application with Dash (+ Docker) part3 ~ Practice ~
A story when I tried to make a video by linking Processing and Resolume
I tried to make a simple game with Javafx ① "Let's find happiness game" (unfinished)
[Android] I tried to make a material list screen with ListView + Bottom Sheet
[Small story] I tried to make the java ArrayList a little more convenient
I tried to make Basic authentication with Java
java I tried to break a simple block
I tried to develop a man-hour management tool
I did Java to make (a == 1 && a == 2 && a == 3) always true
I tried to develop a DUO3.0 study website.
I wanted to make (a == 1 && a == 2 && a == 3) true in Java
I made a LINE bot with Rails + heroku
I tried to develop a website to record expenses.
Easy to make LINE BOT with Java Servlet
I tried to implement a server using Netty
I tried to break a block with java (1)
I tried to make a product price comparison tool of Amazon around the world with Java, Amazon Product Advertising API, Currency API (2017/01/29)
I tried to make a new sorting algorithm, but I don't know if it's really new
I tried to make a simple game with Javafx ① "Let's find happiness game" (unfinished version ②)
I tried to make a message function of Rails Tutorial extension (Part 1): Create a model
I tried to develop a ramen shop sharing website.
How to make LINE messaging function made with Ruby
Let's make a LINE Bot with Ruby + Sinatra --Part 2
I tried to create a Clova skill in Java
I tried to make FizzBuzz that is uselessly flexible
I tried to draw animation with Blazor + canvas API
[Java] I tried to implement Yahoo API product search
Let's make a LINE Bot with Ruby + Sinatra --Part 1
Loop sentence that describes both the Western calendar and the Japanese calendar [Make a notation like 1990 (Heisei 2)]
I tried to make a reply function of Rails Tutorial extension (Part 3): Corrected a misunderstanding of specifications
I tried to make the sample application into a microservice according to the idea of the book "Microservice Architecture".
[Java] I tried to make a rock-paper-scissors game that beginners can run on the console.
I tried to make a message function of Rails Tutorial extension (Part 2): Create a screen to display
I tried to make an application in 3 months from inexperienced
I tried to make an introduction to PHP + MySQL with Docker
I tried to create a java8 development environment with Chocolatey
I tried to modernize a Java EE application with OpenShift.
[Rails] Create an echo bot using the LINE Messaging API.