Skip to main content

A simple asynchronous/synchronous wrapper for https://disclist.noxitb.repl.co/ Bot List.

Project description

Guides:

Here are guides of how to use this Python Wrapper.

Initiating your Client:

from disclist import Client

client = Client(token="...", sync=True) # sync is a kwarg to set if functions need to be async or not. Defaults to True.

Posting Stats:

# If you set sync to True, it will not need to be awaited
# Else, it needs to.
# You can check it using `client.sync` or see the kwarg you set
# if you are unsure.

# For synchronous:
client.post_stats(server_count=1) # Set your server count to 1.

# For asynchronous:
await client.post_stats(server_count=1) # Set your server count to 1.

For checking if user has voted or not:

# For synchronous:
has_voted = client.has_voted(user_id=1234567890)

# For asynchronous:
has_voted = await client.has_voted(user_id=1234567890)

print(has_voted) # True/False

For searching a bot using it's ID:

# For synchronous:
result = client.search(bot_id=1234567890)

# For asynchronous:
result = await client.search(bot_id=1234567890)

print(result) # {'...': ...}, Returns a dict.

Where should I ask help?

Join our discord to ask for help!

License:

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

disclist-0.0.2.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

disclist-0.0.2-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page