listenmoe

Unofficial python3 API wrapper to get information aboutthe listen.moe live stream using aiohttp


Keywords
listenmoe
License
MIT
Install
pip install listenmoe==1.0.1

Documentation

listenmoe

Unofficial python3 API wrapper to get information about the listen.moe live stream using aiohttp.

Installation

Using pip

pip install listenmoe

Using git

pip install git+https://github.com/Zenrac/listenmoe

Requirements:

Examples:

Handler to get the current song forever

import listenmoe
import asyncio

async def hand(self, msg):
    if msg.type == listen.message.SONG_INFO:
        self.now = msg
    else:
        self.now = msg.raw

moe = listenmoe.client.Client(loop=Optional, aiosession=OptionalToo)
moe.register_handler(self.hand)
asyncio.ensure_future(moe.start())

To get kpop updates, use kpop=True in Client.

listen.client.Client(loop=Optional, aiosession=OptionalToo, kpop=True)

Credits

License

This project is licensed under the MIT License - see the LICENSE file for details