{"id":15920558,"url":"https://github.com/cutls/himarun","last_synced_at":"2026-06-15T18:32:12.856Z","repository":{"id":92292061,"uuid":"298036220","full_name":"cutls/himarun","owner":"cutls","description":null,"archived":false,"fork":false,"pushed_at":"2021-05-04T15:52:58.000Z","size":81,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-22T23:42:19.439Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cutls.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-09-23T16:53:52.000Z","updated_at":"2021-05-04T15:53:01.000Z","dependencies_parsed_at":"2023-05-16T19:00:33.575Z","dependency_job_id":null,"html_url":"https://github.com/cutls/himarun","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cutls/himarun","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cutls%2Fhimarun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cutls%2Fhimarun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cutls%2Fhimarun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cutls%2Fhimarun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cutls","download_url":"https://codeload.github.com/cutls/himarun/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cutls%2Fhimarun/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34376122,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-06T19:40:38.026Z","updated_at":"2026-06-15T18:32:12.841Z","avatar_url":"https://github.com/cutls.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 暇ラン(暇人ランキング)\n\n毎日0:00にHTLまたはLTLのトゥート数によるユーザーランキングを投稿するbot。どん廃アラートをユーザー全員で共有するイメージ。\n一鯖一つの運用、そのbot鯖はインスタンス内のアカウントしかフォローしないという前提でUSE_HTLが使えます(が、HTLに外部の投稿が流れてきてもカウントはします)。\n\nなおAUTOFOLLOW(自動フォロバ)は同一インスタンス外からのフォローには反応しません。\n\n鯖缶か鯖缶に許可等を取った人、または黙認された人が運用してください。\n\nkirishima.cloud(アスタルテ)用に作ったけど別にそれ以外でも動く\n\nhttps://kirishima.cloud/@AstarteBot\n\nリプライを送ると、リフォローとそのリプライをした人の1週間のアクティビティをDMで返信します。\n\n## 使い方\n\n### いるもの\n\nNode.js(10と12で確認), yarnとbotアカウント、アクセストークン(read/write必須、AUTOFOLLOWを使うときはfollowも), MySQL(5.7で確認)\n\n* `.env`を設定\n* `yarn` 依存関係を正します\n* `yarn db:init` MySQLのテーブルを作成します\n* `yarn build` tscします(TypeScriptのため)\n* `yarn start` スタート\n\n任意でforever等を使って永続化します\n\n## アプデ\n\nほとんどこないけど\n\n* `yarn`\n* `yarn build`\n* `yarn start`\n\nもしDBに何らかの変更がある場合は起動できなくなる(はず)なので指示に従ってください。\n\n### .env概説\n\nUSE_HTL: ホームタイムラインベースでカウントします。つまり、そのbotアカウントがフォローしているユーザーだけでランキングを作ります。オフの時はローカルタイムライン(認証付き)を使用します。  \nAUTOFOLLOW: 自動フォロバ機能です。そのインスタンス内のユーザーの時だけフォロバを返します。  \nASTARTE: アスタルテでは投稿にMarkdownが使えるので、それに対応してアンダーバーが上/下付き文字になるのを防いだり、グラフ画像を埋め込んだりするようになります。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcutls%2Fhimarun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcutls%2Fhimarun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcutls%2Fhimarun/lists"}