Ragnarok mobile LINE bot helper for display some useful information or ask item price from exchange.
Also you can customize this bot for other game or as you want.
This project just made for fun and for study how to create own LINE bot.
Video demo: https://www.youtube.com/watch?v=6zaEf3WksLg
- Heroku - For deploy bot. Or you can use your own server if you have one. But for this I'll use Heroku for reference.
- Firebase - Easy to use for backend server. I had used this for store bot condition and answers.
- LINE Developer - Register and follow instruction for create channel
Access your Dyno and check at tab settings and Reveal Config Vars. you can set environment variable here
Key | Meaning |
---|---|
CHANNEL_ACCESS_TOKEN | Your LINE Channel access token |
CHANNEL_SECRET | Your LINE Channel secret |
FIREBASE_ACCOUNT | service.account.json content. Check in Firebase Admin SDK instruction. |
- Deploy to Heroku. You can check instruction here.
- On LINE Developer console at Messaging settings. Enable Use webhooks.
- Webhook URL: https://{your_heroku_app_name}.herokuapp.com/callback.
- If you wish your bot can join group chats. Then enable Allow bot to join group chats.
Any config can put here as you want. You can overwrite global_config.json via Firebase too. Sample structure is in sample/app.json. Restart is need for update config.
type $ and follow with part of item name. (Ex. $biotite, $cyfar, $twister)
type $$ and follow with part of item name. (Ex. $$biotite, $$cyfar, $$twister)
type ! and follow command text. (See below for how to add your custom command)
You need to add commands and answers in firebase database with 2 collection.
- chat : For response and answer normal chat.
- ref : List of bot command
Check in sample directory for example values and response template.
- poporing.life - RO M Exchange tracker.
- romexchange.com - Another site for price tracking.
- Ragnarok mobile community (Unofficial) Discord group.
- Inforgraphic or images credit to owner.