Skip to main content

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

Project description

statcord.py

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.

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

Example Cogs System

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))

Example non-cogs system.

import discord
from discord.ext import commands
import statcord 

bot = commands.Bot(command_prefix='!')

key = "statcord.com-ADDYOURKEYHERE"
api = statcord.Client(bot,key)
api.start_loop()

@bot.event
async def on_command(ctx):
    api.command_run(ctx)


bot.run(TOKEN)

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-3.0.2.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

statcord.py-3.0.2-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file statcord.py-3.0.2.tar.gz.

File metadata

  • Download URL: statcord.py-3.0.2.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for statcord.py-3.0.2.tar.gz
Algorithm Hash digest
SHA256 555f73730c94eede41237068375c5d1b71517524434653439d24837be26db9db
MD5 d61311dee455fd12adbc8079d923884c
BLAKE2b-256 a0f092770c551b7a2d64d3a4c675ee765074bdf44f86f1e190655719054caa68

See more details on using hashes here.

File details

Details for the file statcord.py-3.0.2-py3-none-any.whl.

File metadata

  • Download URL: statcord.py-3.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.7 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/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for statcord.py-3.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b03631e86bc2e85e48f47c5a486ebc7bef24a1dc7b0b177dc30f279596a5b1e9
MD5 1b01cd835d8ed0d5edfa658d5114044b
BLAKE2b-256 79adafb2447d1d54c0d64644f58a0395107990d83a0797aef7734ceab20bda22

See more details on using hashes here.

Supported by

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