{"id":28472915,"url":"https://github.com/fromsko/msgbot","last_synced_at":"2025-07-02T01:30:47.699Z","repository":{"id":189480571,"uuid":"680770719","full_name":"Fromsko/msgBot","owner":"Fromsko","description":"Discord 机器人 Demo","archived":false,"fork":false,"pushed_at":"2023-12-05T11:19:16.000Z","size":13693,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-07T11:34:53.790Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Fromsko.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}},"created_at":"2023-08-20T10:55:37.000Z","updated_at":"2023-08-20T10:57:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"eac96b95-4bdd-4959-ac5d-8da71591890a","html_url":"https://github.com/Fromsko/msgBot","commit_stats":null,"previous_names":["fromsko/msgbot"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Fromsko/msgBot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fromsko%2FmsgBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fromsko%2FmsgBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fromsko%2FmsgBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fromsko%2FmsgBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fromsko","download_url":"https://codeload.github.com/Fromsko/msgBot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fromsko%2FmsgBot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263059482,"owners_count":23407367,"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":[],"created_at":"2025-06-07T11:30:47.520Z","updated_at":"2025-07-02T01:30:47.685Z","avatar_url":"https://github.com/Fromsko.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discord_demo\n\n\u003e msgBot 一个 demo 级案例\n\n![fn](./res/bot.png)\n\n## 使用\n\n\u003e msgBot/config/config.json 中填写 token\n\u003e\n\u003e 国内 win 下开发需要设置 proxy\n\n1. 安装依赖\n\n   ```bash\n   pip install discord.py\n   py main.py\n   ```\n\n2. 运行成功 (gateway 显示 Session ID 代表运行成功)\n\n   ![running](./res/terminal.png)\n\n3. 同步服务器\n\n   ```bash\n   !synccommands\n   ```\n\n   ![sync-commands](./res/sync-commands.png)\n\n4. 命令反馈\n\n   ![command](./res/call.png)\n\n## 实现\n\n- ping '/ping'\n- 随机一言 '/onesay'\n- 同步官方命令 '!synccommands'\n\n## 感谢\n\n- [Discord.py](https://github.com/Rapptz/discord.py)\n- [大佬讲解](https://www.bilibili.com/video/BV1Wp4y1V7Zg/?spm_id_from=333.337.top_right_bar_window_history.content.click)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffromsko%2Fmsgbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffromsko%2Fmsgbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffromsko%2Fmsgbot/lists"}