Skip to main content

Python Misskey Bot Framework

Project description


Discord server invite Ruff



MiPA is a Misskey Bot Framework created to allow for coding.

About MiPAC

The API wrapper functionality provided by MiPA is managed by a library called MiPAC. Since the amount of work is significantly higher than that of MiPA, we are looking for people to work with us.

Supported Misskey Versions


import asyncio

from aiohttp import ClientWebSocketResponse
from mipac.models.note import Note

from import Bot

class MyBot(Bot):
    def __init__(self):

    async def _connect_channel(self):
      await self.router.connect_channel(['main', 'home'])

    async def on_ready(self, ws: ClientWebSocketResponse):
        await self._connect_channel()
        print('Logged in ', self.user.username)

    async def on_reconnect(self, ws: ClientWebSocketResponse):
        await self._connect_channel()

    async def on_note(self, note: Note):
        print(, note.content)

if __name__ == '__main__':
    bot = MyBot()'wss://', 'your token here'))

For more examples, please see the examples folder. If you don't know how to do what you want in the examples, please feel free to create an issue.


This project is provided under the MIT LICENSE.

MiPA has been inspired by in many ways. Therefore, in places where we use the source code of, we specify the license of at the beginning of the file. Please check the code for details.

FOSSA Status

Special Thanks

    • We have been inspired by many aspects of, such as the mechanism of Cogs and the management of tasks and states.

Documentation * Discord Server

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mipa-0.4.2.tar.gz (37.1 kB view hashes)

Uploaded Source

Built Distribution

mipa-0.4.2-py3-none-any.whl (29.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page