Metadata-Version: 2.1
Name: bfd.py
Version: 1.0.2
Summary: A simple API wrapper for botsfordiscord.com written in Python.
Home-page: https://github.com/MattIPv4/bfd.py/
Author: MattIPv4
License: UNKNOWN
Project-URL: Funding, http://patreon.mattcowley.co.uk/
Project-URL: Support, http://discord.mattcowley.co.uk/
Project-URL: Source, https://github.com/MattIPv4/bfd.py/
Keywords: api wrapper discord bot bots stats statistics
Platform: UNKNOWN
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Classifier: Programming Language :: Python :: 3
Classifier: Natural Language :: English
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Requires-Python: >= 3.5
Description-Content-Type: text/markdown
Requires-Dist: aiohttp (>=2.3.9)

[![PyPI](https://img.shields.io/pypi/v/bfd.py.svg)](https://pypi.org/project/bfd.py/)

# Warning: bfd.py has been deprecated
 Please consider using [discordlists.py](https://github.com/MattIPv4/discordlists.py/) instead which is also available on [PyPi](https://pypi.org/project/discordlists.py/).

# bfd.py
**A simple API wrapper for botsfordiscord.com written in Python.**

## Installation

Install via pip (recommended)

    pip install bfd.py

## Features

* POST server count
* AUTOMATIC server count updating
* GET bot info
* GET global bot list
* GET bot list for a specific user
* GET widgets url
* SEARCH for bots

## Example Discord.py Rewrite cog


```Python
    import bfd
    import discord
    from discord.ext import commands


    class BotsForDiscord:
        def __init__(self, bot):
            self.bot = bot
            self.token = 'token'  # set this to your BFD token
            self.bfd = bfd.Client(self.bot, self.token)  # Create a Client instance
            self.bfd.start_loop()  # Posts the server count every 30 minutes

        @commands.command()
        async def botinfo(self, ctx, bot: discord.User): # unfiltered botinfo demo
            info = await self.bfd.get_bot(bot.id)
            if info is None:
                await ctx.send("Can't find this bot on BFD")
                return

            embed = discord.Embed(title="BotInfo")
            for key, value in info.as_dict().items():
                if key == "" or value == "":
                    continue

                embed.add_field(name=key, value=str(value))

            await ctx.send(embed=embed)


    def setup(bot):
        bot.add_cog(BotsForDiscord(bot))
```

## Discussion, Support and Issues
For general support and discussion of this project, please join the Discord server: https://discord.gg/qyXqA7y \
[![Discord Server](https://discordapp.com/api/guilds/204663881799303168/widget.png?style=banner2)](https://discord.gg/qyXqA7y)

To check known bugs and see planned changes and features for this project, please see the GitHub issues.\
Found a bug we don't already have an issue for? Please report it in a new GitHub issue with as much detail as you can!

