Skip to main content

A Python package for interacting with Discord Analytics API

Project description

Discord Analytics

Installing the package

pip install discordanalytics

Usage

Note: To use Discord Analytics, you need to have an API token. Check the docs for more informations : https://discordanalytics.xyz/docs/main/get-started/bot-registration

import discord
from discordanalytics import DiscordAnalytics

class MyClient(discord.Client):
  async def on_ready(self):
    print(f'Logged on as {self.user}!')

intents = discord.Intents.default()
intents.message_content = True
client = MyClient(intents=intents)

analytics = DiscordAnalytics(client, "YOUR_API_TOKEN")
analytics.track_events()

client.run('TOKEN')

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

discordanalytics-3.5.0.tar.gz (42.2 kB view details)

Uploaded Source

Built Distribution

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

discordanalytics-3.5.0-py3-none-any.whl (30.5 kB view details)

Uploaded Python 3

File details

Details for the file discordanalytics-3.5.0.tar.gz.

File metadata

  • Download URL: discordanalytics-3.5.0.tar.gz
  • Upload date:
  • Size: 42.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for discordanalytics-3.5.0.tar.gz
Algorithm Hash digest
SHA256 06bac5f3139b19ef99ef56779eef45582f5adfeddbf2196625b2d4a90ecffc83
MD5 27b3b7c3989cc2bc428ef54869b1cefc
BLAKE2b-256 dba0b5052a4cedbde1d2912d87225fd31f432e698e5e2180084677fd5d5e3764

See more details on using hashes here.

File details

Details for the file discordanalytics-3.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for discordanalytics-3.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 270725b354818407d750376c34cf1edffec2aafcc2e9ea086d89196a633f2d80
MD5 633b44e061387bc89506b7f8e192987a
BLAKE2b-256 7943b3f3e3a05b33225c59b16425ffd3acbd7ce9f3db96c90ec353e271940853

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