semvec/pypi-packages huggingface dataset:
topggapi 0.0.3
Get data from the Top.gg API using this Python module!
Requires Python: >=3.6

# Top.gg API Module
NOTE: This module does not support posting server count or dealing with vote webhooks. This module allows you to get information from the Top.gg API regarding Votes, User details and more.

This is a Python package for the Top.gg API.

## Installation

Use the package manager [pip](https://pypi.org/project/topggapi/) to install this module.

```bash
pip install topggapi
```

## Examples

```python
from topggapi import Topgg
import discord
from discord.ext import commands

client = commands.Bot(command_prefix="!")
topgg = Topgg("your-topgg-token-here")

@client.command()
async def vote(ctx):
	votecheck = topgg.checkVote(client.id, ctx.author.id)
	if votecheck.voted == True:
		# User has voted!
	else:
		# User hasn't voted!

client.run("BOT-TOKEN")
```

## Get API key
To get an API key, visit Top.gg.