{"id":19606575,"url":"https://github.com/yupix/mipa","last_synced_at":"2026-02-14T11:08:40.627Z","repository":{"id":40308625,"uuid":"486132709","full_name":"yupix/MiPA","owner":"yupix","description":"Python Misskey Bot Framework","archived":false,"fork":false,"pushed_at":"2024-02-21T14:59:00.000Z","size":279,"stargazers_count":26,"open_issues_count":7,"forks_count":6,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2024-04-14T01:41:15.073Z","etag":null,"topics":["bot-framework","library","misskey","misskey-bot","python-library","python3"],"latest_commit_sha":null,"homepage":"https://mipa.akarinext.org/api","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/yupix.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2022-04-27T09:42:18.000Z","updated_at":"2024-03-22T16:10:38.000Z","dependencies_parsed_at":"2023-02-17T05:16:02.580Z","dependency_job_id":"c5830151-0550-42d4-9687-132ce1b59daa","html_url":"https://github.com/yupix/MiPA","commit_stats":{"total_commits":138,"total_committers":7,"mean_commits":"19.714285714285715","dds":0.07971014492753625,"last_synced_commit":"4a134d14c3024e6e1c929f2427ab029f7b6f24b6"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yupix%2FMiPA","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yupix%2FMiPA/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yupix%2FMiPA/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yupix%2FMiPA/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yupix","download_url":"https://codeload.github.com/yupix/MiPA/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227951777,"owners_count":17846345,"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-framework","library","misskey","misskey-bot","python-library","python3"],"created_at":"2024-11-11T10:06:06.684Z","updated_at":"2026-02-14T11:08:40.564Z","avatar_url":"https://github.com/yupix.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MiPA\n\n\u003ca href=\"https://discord.gg/CcT997U\"\u003e\u003cimg src=\"https://img.shields.io/discord/530299114387406860?style=flat-square\u0026color=5865f2\u0026logo=discord\u0026logoColor=ffffff\u0026label=discord\" alt=\"Discord server invite\" /\u003e\u003c/a\u003e\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n\u003ca href=\"https://app.fossa.com/projects/git%2Bgithub.com%2Fyupix%2FMiPA?ref=badge_shield\" alt=\"FOSSA Status\"\u003e\u003cimg src=\"https://app.fossa.com/api/projects/git%2Bgithub.com%2Fyupix%2FMiPA.svg?type=shield\"/\u003e\u003c/a\u003e\n\n## Overview\n\n[日本語版](./README_JP.md)\n\nMiPA is a Misskey Bot Framework created to allow for [Discord.py](https://github.com/Rapptz/discord.py)-like coding.\n\n\n## About MiPAC\nThe API wrapper functionality provided by MiPA is managed by a library called [MiPAC](https://github.com/yupix/mipac). Since the amount of work is significantly higher than that of MiPA, we are looking for people to work with us.\n\n\n## Supported Misskey Versions\n\n- [Misskey Official v13](https://github.com/misskey-dev/misskey)\n- [Misskey Official v12](https://github.com/misskey-dev/misskey)\n- [Misskey Official v11](https://github.com/misskey-dev/misskey)\n\n### Examples\n\n```py\nimport asyncio\n\nfrom aiohttp import ClientWebSocketResponse\nfrom mipac.models.note import Note\n\nfrom mipa.ext.commands.bot import Bot\n\n\nclass MyBot(Bot):\n    def __init__(self):\n        super().__init__()\n\n    async def _connect_channel(self):\n      await self.router.connect_channel(['main', 'home'])\n\n    async def on_ready(self, ws: ClientWebSocketResponse):\n        await self._connect_channel()\n        print('Logged in ', self.user.username)\n\n    async def on_reconnect(self, ws: ClientWebSocketResponse):\n        await self._connect_channel()\n\n    async def on_note(self, note: Note):\n        print(note.user.username, note.text)\n\n\nif __name__ == '__main__':\n    bot = MyBot()\n    asyncio.run(bot.start('wss://example.com/streaming', 'your token here'))\n```\n\nFor more examples, please see the [examples folder](examples). If you don't know how to do what you want in the examples, please feel free to create an issue.\n\n\n\n\n## LICENSE\nThis project is provided under the [MIT LICENSE](./LICENSE).\n\nMiPA has been inspired by Discord.py in many ways. Therefore, in places where we use the source code of Discord.py, we specify the license of Discord.py at the beginning of the file. Please check the code for details.\n\n\n\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fyupix%2FMiPA.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fyupix%2FMiPA?ref=badge_large)\n\n## Special Thanks\n\n- [Discord.py](https://github.com/Rapptz/discord.py)\n    - We have been inspired by many aspects of Discord.py, such as the mechanism of Cogs and the management of tasks and states.\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://mipa.akarinext.org\"\u003eDocumentation\u003c/a\u003e\n    *\n    \u003ca href=\"https://discord.gg/CcT997U\"\u003eDiscord Server\u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyupix%2Fmipa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyupix%2Fmipa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyupix%2Fmipa/lists"}