{"id":27222266,"url":"https://github.com/up2code/kafra-line","last_synced_at":"2025-10-29T02:15:52.447Z","repository":{"id":101256609,"uuid":"171628272","full_name":"up2code/kafra-line","owner":"up2code","description":"Ragnarok mobile LINE Bot helper","archived":false,"fork":false,"pushed_at":"2020-06-15T09:59:27.000Z","size":203,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T09:07:35.756Z","etag":null,"topics":["bot","line-bot","ragnarokmobile"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/up2code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-20T08:04:40.000Z","updated_at":"2022-11-23T17:36:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"a415f7bf-1b5c-409c-9fb6-cc9aed6086e2","html_url":"https://github.com/up2code/kafra-line","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/up2code/kafra-line","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/up2code%2Fkafra-line","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/up2code%2Fkafra-line/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/up2code%2Fkafra-line/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/up2code%2Fkafra-line/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/up2code","download_url":"https://codeload.github.com/up2code/kafra-line/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/up2code%2Fkafra-line/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259302903,"owners_count":22837242,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","line-bot","ragnarokmobile"],"created_at":"2025-04-10T08:58:06.008Z","updated_at":"2025-10-18T12:49:05.675Z","avatar_url":"https://github.com/up2code.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kafra-line\nRagnarok mobile LINE bot helper for display some useful information or ask item price from exchange. \n\nAlso you can customize this bot for other game or as you want.\n\nThis project just made for fun and for study how to create own LINE bot.\n\nVideo demo: https://www.youtube.com/watch?v=6zaEf3WksLg\n\n## Requirement\n\n- [Heroku](https://dashboard.heroku.com) - For deploy bot. Or you can use your own server if you have one. But for this I'll use Heroku for reference.\n- [Firebase](https://firebase.google.com) - Easy to use for backend server. I had used this for store bot condition and answers.\n- [LINE Developer](https://developers.line.biz) - Register and follow [instruction](https://developers.line.biz/en/docs/messaging-api/getting-started) for create channel\n\n## Setup Heroku environment variable\n\nAccess your Dyno and check at tab **settings** and **Reveal Config Vars**. you can set environment variable here\n\n| Key  | Meaning |\n| ------------- | ------------- |\n| CHANNEL_ACCESS_TOKEN  | Your LINE Channel access token  |\n| CHANNEL_SECRET  | Your LINE Channel secret  |\n| FIREBASE_ACCOUNT  | **service.account.json** content. Check in [Firebase Admin SDK instruction](https://firebase.google.com/docs/admin/setup?authuser=0).   |\n\n\n## Deploy as your own LINE bot\n\n- Deploy to [Heroku](https://dashboard.heroku.com). You can check instruction [here](https://devcenter.heroku.com/articles/getting-started-with-nodejs).\n- On LINE Developer console at Messaging settings.  Enable __Use webhooks__.\n- Webhook URL: __https://{your_heroku_app_name}.herokuapp.com/callback__.\n- If you wish your bot can join group chats. Then enable __Allow bot to join group chats__.\n\n## Global config\nAny 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.\n\n## Usage\n\n### Query item from poporing.life\n\ntype __$__ and follow with part of item name. (Ex. $biotite, $cyfar, $twister)\n\n### Query item from romexchange.com\n\ntype __$$__ and follow with part of item name. (Ex. $$biotite, $$cyfar, $$twister)\n\n### Command\n\ntype __!__ and follow command text. (See below for how to add your custom command)\n\n## Add your own custom bot commands/answers\n\nYou need to add commands and answers in firebase database with 2 collection.\n\n- chat : For response and answer normal chat.\n- ref : List of bot command\n\nCheck in **sample** directory for example values and response template.\n\n## Credit source information\n- [poporing.life](https://poporing.life/) - RO M Exchange tracker.\n- [romexchange.com](https://www.romexchange.com) - Another site for price tracking.\n- [Ragnarok mobile community (Unofficial) Discord group.](https://discord.gg/NEccsCX)\n- Inforgraphic or images credit to owner.\n\n## Reference\n- [LINE Message API](https://developers.line.biz/en/docs/messaging-api)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fup2code%2Fkafra-line","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fup2code%2Fkafra-line","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fup2code%2Fkafra-line/lists"}