Metadata-Version: 2.1
Name: DEL.py
Version: 0.3
Summary: API wrapper for discordextremelist
Home-page: https://github.com/discordextremelist/del.py
Author: Moksej
Author-email: moksej@gmail.com
License: MIT
Download-URL: https://github.com/discordextremelist/del.py.git
Description: # DEL.py
        #### The official Python Library for the [discordextremelist.xyz](https://discordextremelist.xyz) API
        
        # Installation
        
        ### pypi (recommended) (not on pypi yet)
        #### `pip install del.py`
        ### source
        #### `pip install git+https://github.com/discordextremelist/del.py`
        
        # Code Examples
        
        ## Post bot stats (server count, shard count): *you might need to change loop*
        
        ```python
        import delpy
        
        from discord.ext import commands, tasks
        
        class discordextremelist(commands.Cog):
            def __init__(self, bot):
                self.bot = bot
                self.update_stats.start()
                self.delapi = delpy.Client(self.bot, "token", loop=bot.loop)  # you can get the token from your bot's page on DEL
        
            def cog_unload(self):
                self.update_stats.cancel()
        
            @tasks.loop(minutes=30.0)
            async def update_stats(self):
                try:
                    await self.delapi.post_stats(guildCount=len(self.bot.guilds), shardCount=len(self.bot.shards))  # shardCount is optional
                except Exception as e:
                    print(e)
        
        def setup(bot):
            bot.add_cog(discordextremelist(bot))
        ```
        
        ## Get server/bot/template/user information
        
        ```python
        import delpy
        
        from discord.ext import commands
        
        class discordextremelist(commands.Cog):
            def __init__(self, bot):
                self.bot = bot
                self.delapi = delpy.Client(loop=bot.loop)  # you might need to change loop
            
            # you can either make a command or anything you want
            # you'll need to use this line inside your command though
            # data = await self.delapi.get_{option}_info("<id goes here>")
            # valid options: server, bot, template, user
        
        def setup(bot):
            bot.add_cog(discordextremelist(bot))
        ```
        
        ## Get website statistics/health
        
        ```python
        import delpy
        
        from discord.ext import commands
        
        class discordextremelist(commands.Cog):
            def __init__(self, bot):
                self.bot = bot
                self.delapi = delpy.Client(loop=bot.loop)  # you might need to change loop
            
            # you can either make a command or anything you want
            # you'll need to use this line inside your command though
            # data = await self.delapi.get_website_{option}()
            # valid options: health, stats
        
        def setup(bot):
            bot.add_cog(discordextremelist(bot))
        ```
        
        ### If you're lost, do not hesitate and join the [del server](https://discord.gg/WeCer3J) where you can ask for help in #development
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
