Metadata-Version: 2.1
Name: moonlistclient
Version: 0.6.6
Summary: Wrapper for the moonlist api
Home-page: https://github.com/VadyChel/MoonlistClient
Author-email: zyzel19@gmail.com
License: UNKNOWN
Description: # Wrapper for the moonlist api
        > Wrapper for the moonlist api with webhook and auto post data supporting
        
        # How to install?
        > From pip:
        > ```
        > pip install moonlistclient
        > ```
        > From source:
        > ```
        > pip install git+https://github.com/VadyChel/MoonlistClient
        > ```
        
        # Examples
        Simple usage:
        ```py
        from moonlistclient import MoonlistClient, HTTPException
        from discord.ext import commands, tasks
        
        
        class MLCExample(commands.Cog):
            def __init__(self, bot):
                self.bot = bot
                self.mclient = MoonlistClient(
                    bot=self.bot,
                    api_key="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
                    autopost=False        
                )
                self.post_stat_loop.start()
        
            @tasks.loop(hours=3)
            async def post_stat_loop(self):
                await self.bot.wait_until_ready()
                try:
                    await self.mclient.post_stat()
                except HTTPException:
                    print("Failed to post bot stat")
        
        
        def setup(client):
            client.add_cog(MLCExample(client))
        ```
        
        Other examples you can see in [examples directory](https://github.com/VadyChel/MoonbotsClient/tree/main/examples)
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
