A Line chatbot which replies with a meme image when certain keywords are detected.
Add me on Line:
ID: @560xwtfv
Usage Example:
- Add me on Line using QRCode or this link.
- Send a meme keyword with
.jpg
. (Try我就爛.jpg
, oralways has been.jpg
.) - Nice!
Full Command List (frequently updated)
It is difficult to run this chatbot in local environments because the chatbot is triggered via webhooks.
./start_test_container.sh
go test ./...
./clean_test_container.sh
heroku container:push -a meme-linebot web
heroku container:release -a meme-linebot web
Use the uploader tool in ./tools/uploader
to automatically upload meme images from a local directory.
Add a new meme entry.
Request Body:
{
"admin": "the administrator secret.",
"name": "memeName",
"link": "imgurID"
}
Delete an existing meme entry.
Request Body:
{
"admin": "the administrator secret.",
"name": "memeName"
}
- Write more unit tests. Only
package models
is fully tested now. - Redesign the frontend of the homepage.
- Implement a tracker to track the statistics of meme usage.
(In reverse chronological order.)
- Fuzzy search supported. (i.e. Even if no meme matches the user's message, the meme with the closest name would be returned.)
- Now the the Line ID is shown in the homepage.
- The uploader tool will now show the error when it fails to upload image to Imgur.
- Now punctuations will be stripped out of the received messages, so that messages with redundant punctuations can also trigger the chatbot.
- Started the project this morning and finished it before dinner. Yup.