Metadata-Version: 2.1
Name: discordservices.py
Version: 0.0.2
Summary: A simple API wrapper for discordservices.net
Home-page: https://github.com/DiscordServices/discordservices.py
Author: mischievousdev
Author-email: miscdev.py@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: aiohttp (<3.7.0,>=3.3.0)

# discordservices.py
A Simple Python API Wrapper for discordservices.net

# Usage
Installation:

Via pip: `pip install discordservices.py`

With autopost:
```py
import discord
import discordservices

from discord.ext import commands

bot = commands.Bot(command_prefix="!")
bot.dsclient = discordservices.DSClient(bot, 'apitoken', autopost=True) # default to False, if sets True it will autoposts every 900 seconds

bot.run('token')
```

Without autopost:
```py
import discord
import discordservices

from discord.ext import commands

bot = commands.Bot(command_prefix="!")
bot.dsclient = discordservices.DSClient(bot, 'apitoken', autopost=False)

@bot.event
async def on_guild_join(guild):
    await bot.dsclient.post_count()
    print("Guild count posted")

bot.run('token')

```


