{"id":25947269,"url":"https://github.com/n138-kz/oshiire-bot","last_synced_at":"2026-05-07T12:33:11.099Z","repository":{"id":148382205,"uuid":"607599521","full_name":"n138-kz/oshiire-bot","owner":"n138-kz","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-07T10:31:17.000Z","size":104103,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-07-07T11:48:09.537Z","etag":null,"topics":["bot","discord","discord-bot"],"latest_commit_sha":null,"homepage":"https://twitter.com/hashtag/%E6%8A%BC%E5%85%A5%E3%82%8C%E9%AF%96?src=hashtag_click","language":"Python","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/n138-kz.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":"2023-02-28T09:53:57.000Z","updated_at":"2024-07-07T10:31:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"8842ce60-daf9-4a4a-be08-d885a646a6df","html_url":"https://github.com/n138-kz/oshiire-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n138-kz%2Foshiire-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n138-kz%2Foshiire-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n138-kz%2Foshiire-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n138-kz%2Foshiire-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/n138-kz","download_url":"https://codeload.github.com/n138-kz/oshiire-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241827138,"owners_count":20026601,"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","discord","discord-bot"],"created_at":"2025-03-04T10:18:52.180Z","updated_at":"2026-05-07T12:33:06.076Z","avatar_url":"https://github.com/n138-kz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [押入れBOT](https://github.com/n138-kz/oshiire-bot)\n\n[![GitHub commit activity](https://img.shields.io/github/commit-activity/w/n138-kz/oshiire-bot)](/../../)\n[![GitHub last commit](https://img.shields.io/github/last-commit/n138-kz/oshiire-bot)](/../../)\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/n138-kz/oshiire-bot/Docker-test_dev.yml)](/../../actions)\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/n138-kz/oshiire-bot/Docker-test_prd.yml)](/../../actions)\n[![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/n138-kz/oshiire-bot)](/../../)\n[![GitHub repo file count](https://img.shields.io/github/directory-file-count/n138-kz/oshiire-bot)](/../../)\n[![GitHub repo size](https://img.shields.io/github/repo-size/n138-kz/oshiire-bot)](/../../)\n[![GitHub issues](https://img.shields.io/github/issues-raw/n138-kz/oshiire-bot)](/../../issues)\n[![GitHub](https://img.shields.io/github/license/n138-kz/oshiire-bot)](/../../)\n[![GitHub language count](https://img.shields.io/github/languages/count/n138-kz/oshiire-bot)](/../../)\n[![GitHub top language](https://img.shields.io/github/languages/top/n138-kz/oshiire-bot)](/../../)\n\n## How to run\n\n1. Install the Docker [https://docs.docker.jp/docker-for-windows/install.html](https://docs.docker.jp/docker-for-windows/install.html)\n1. Get Webhook URI [https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks)\n![Images](https://support.discord.com/hc/article_attachments/1500000463501/Screen_Shot_2020-12-15_at_4.41.53_PM.png)\n![Images](https://support.discord.com/hc/article_attachments/360101553853/Screen_Shot_2020-12-15_at_4.51.38_PM.png)\n1. Create [`secret.yml`](#secretyml-gitignore) file to under `dev/` or `prd/`.\n1. Run command the below ([#docker-build](#docker-build))\n1. Run command the below ([#docker-run](#docker-run))\n\n## Docker Build\n\n```bash:docker-build\ndocker build -t n138-kz/oshiire-bot:dev dev/ ;\ndocker build -t n138-kz/oshiire-bot:prd prd/ ;\ndocker build -t n138-kz/oshiire-bot     prd/ ;\n```\n\n## Docker Run\n\n```bash:docker-run\ndocker run n138-kz/oshiire-bot:dev\n```\n\n## Items\n\n- Dockerfile   -- Dockerfile\n- images_001.png   -- 添付画像ファイル\n- push.py   -- Script本体\n- [secret.yml](#secretyml-gitignore)   -- Discord API エンドポイント\n  \n[![image](https://user-images.githubusercontent.com/8064928/226809337-e63f68b8-a846-4511-868f-f3c5f3e5bd5e.png)](/../../)\n\n### secret.json (gitignore)\n\n```json:secret.json\n{\n  \"credential\": {\n    \"endpoint\": \"https://discord.com/api/webhooks/xxxxxxxxxxxxxxxxxxx\"\n  }\n}\n```\n\n### secret.yml (gitignore)\n\n```yaml:secret.yml\ncredential:\n  endpoint: https://discord.com/api/webhooks/xxxxxxxxxxxxxxxxxxx\n```\n\n[`?wait=true`][waitEqTrue] : [200OK][http200] の時 Responceを返すようになる。（デフォルトでは付いてない→ [204NoContent][http204]になる）\n**なくてもいい**\n\n---\n\n\u003e waits for server confirmation of message send before response (defaults to `true`; when `false` a message that is not saved does not return an error)\n\n[http200]: https://developer.mozilla.org/ja/docs/Web/HTTP/Status/200\n[http204]: https://developer.mozilla.org/ja/docs/Web/HTTP/Status/204\n[waitEqTrue]: https://discord.com/developers/docs/resources/webhook#execute-webhook\n\n---\n\n```bash\n[n138-kz@localhost oshiire-bot]$ date ; ls -lA *\nMon Jul  3 04:26:26 JST 2023\n-rw-r--r-- 1 komiya komiya 1067 May  3 12:12 License\n-rw-r--r-- 1 komiya komiya 3681 Jun  4 02:40 README.md\n\ndev:\ntotal 1212\n-rw-r--r-- 1 komiya komiya     196 May 24 18:41 Dockerfile\n-rw-r--r-- 1 komiya komiya 1216787 Jul  3 04:18 images_001.png\n-rw-r--r-- 1 komiya komiya   10168 Jul  3 04:18 push.py\n-rw-r--r-- 1 komiya komiya     156 Jun  4 19:07 secret.yml\n\nprd:\ntotal 1212\n-rw-r--r-- 1 komiya komiya     196 May 24 18:43 Dockerfile\n-rw-r--r-- 1 komiya komiya 1216787 Jul  3 04:18 images_001.png\n-rw-r--r-- 1 komiya komiya   10199 Jul  3 04:18 push.py\n-rw-r--r-- 1 komiya komiya     156 May  3 15:06 secret.yml\n[n138-kz@localhost oshiire-bot]$\n```\n\n## Refs links\n\n- [Discord Webhooks Guide | Structure of Webhook](https://birdie0.github.io/discord-webhooks-guide/discord_webhook.html)\n- [pythonからDiscordのwebhookでメッセージ投稿する備忘録 - Qiita](https://qiita.com/ABBBB/items/e6bdf7fc94b8f6f72a01)\n- [（小ネタ）Discord WebhookでTwitterみたいな4枚画像を表示してみる - Qiita](https://qiita.com/GrapeColor/items/bdcf8431b13091447028)\n- [Discord Developer Portal — Documentation — Webhook][waitEqTrue]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn138-kz%2Foshiire-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fn138-kz%2Foshiire-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn138-kz%2Foshiire-bot/lists"}