Skip to main content

Um coletor de votos no Zuraaa.

Project description

Uma forma não oficial de verificar quando alguem votou no seu bot.

Instalação

É necessário Python 3.5.3 ou superior.

A instalação pode ser feita via PyPI. Basta executar o seguinte comando:

python -m pip install zuraaa-vote-checker

Modo de usar

O uso é simples, basta carregar uma cog chamada zuraaaVoteChecker (case-sensitive)

Depois disso é só escutar o evento zuraaa_vote.

  • Ele recebe um único parâmetro do tipo discord.User, representando quem votou.

Exemplo:

from discord.ext.commands import Bot

bot = Bot(command_prefix = '.')

@bot.event
async def on_zuraaa_vote(user):
    print(f'{user.name} votou!')

bot.load_extension('zuraaaVoteChecker')

bot.run('TOKEN')

Você pode acessar a quantidade de usuários que votaram no bot também!

Basta acessar o atributo zuraaa_vote_streak, na classe do seu bot. Ele irá contar a quantidade de votos desde que a cog foi carregada.

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

zuraaa-vote-checker-0.1.3.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

zuraaa_vote_checker-0.1.3-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file zuraaa-vote-checker-0.1.3.tar.gz.

File metadata

  • Download URL: zuraaa-vote-checker-0.1.3.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for zuraaa-vote-checker-0.1.3.tar.gz
Algorithm Hash digest
SHA256 99301f2ceee2b2eaf76186cb35e8ee9830fd5d549473c4222e80f0971bdf8b66
MD5 f86145be3701791c63b8a207cda14db2
BLAKE2b-256 b594e6e4ac4d54fd72b86be944369e16ffcd760c91da6baa5b4e385cea604f7b

See more details on using hashes here.

File details

Details for the file zuraaa_vote_checker-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: zuraaa_vote_checker-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for zuraaa_vote_checker-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 73f7fba06b90e3f2d35eadbf0cb6cb9cfa39a131a2a5c319f9382d86bc406253
MD5 5e5c83ae7c30e942a5f5c8c4243e2252
BLAKE2b-256 341c2522785263925b16f085678c088660c57e2c433048be16a9800f66958564

See more details on using hashes here.

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