Skip to content

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

License

Notifications You must be signed in to change notification settings

Zenrac/listenmoe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages