Skip to main content

A simple API wrapper for statcord.com to connect your bot and get your bot stats.

Project description

statcord.py - BETA

A simple API wrapper for statcord.com to connect your bot and get your bot stats.


Installation

Install via pip (recommended)

python3 -m pip install statcord.py

Features

  • AUTOMATIC server & user counts updating.
  • AUTOMATIC commands & active users updating.

Example Discord.py Cogs

Posting Server & User Counts, Active Users and Popular Commands.

from discord.ext import commands

import statcord


class StatcordPost(commands.Cog):
    def __init__(self, bot):
        self.bot = bot
        self.key = "statcord.com-ADDYOURKEYHERE"
        self.api = statcord.Client(self.bot,self.key)
        self.api.start_loop()


    @commands.Cog.listener()
    async def on_command(self,ctx):
        self.api.command_run(ctx)


def setup(bot):
    bot.add_cog(StatcordPost(bot))

Contributing

Contributions are always welcome!
Take a look at any existing issues on this repository for starting places to help contribute towards, or simply create your own new contribution to the project.

When you are ready, simply create a pull request for your contribution and we will review it whenever we can!

Donating

You can also help me and the project out by sponsoring me through a donation on PayPal.

Discussion, Support and Issues

Need support with this project, have found an issue or want to chat with others about contributing to the project?

Please check the project's issues page first for support & bugs!

Not found what you need here?

  • If you have an issue, please create a GitHub issue here to report it, include as much detail as you can.
  • Alternatively, You can join our Discord server to discuss any issue or to get support for the project.:
Discord

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

statcord.py-beta-2.0.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

statcord.py_beta-2.0.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file statcord.py-beta-2.0.1.tar.gz.

File metadata

  • Download URL: statcord.py-beta-2.0.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for statcord.py-beta-2.0.1.tar.gz
Algorithm Hash digest
SHA256 f33bf60bf2f9e26ed0bc93f683adbde96cdcb1783669d55030e25ff907f1dd90
MD5 39341844d3c4c371b4b21c388116b87d
BLAKE2b-256 f8b658b9a42f792ca25463295926f919f37d0ba54f03f1ee048960c8c101be57

See more details on using hashes here.

File details

Details for the file statcord.py_beta-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: statcord.py_beta-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for statcord.py_beta-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ba05191ad79907d82caea188dce6b329e4b9a3458d35ada40ee826798c19bc24
MD5 a09f8e1001fdbbc71568e15cb9f7c61b
BLAKE2b-256 401fcb0ec34f3848db0de20523ea882d3600f9732ddf1abda47f872c47637813

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