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://docs.discordanalytics.xyz/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.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

discordanalytics-3.1.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: discordanalytics-3.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for discordanalytics-3.1.0.tar.gz
Algorithm Hash digest
SHA256 3fbece45f1afbe6e917b7f2419509b15d6509fc051ada52b5995c6b79fdcf902
MD5 644b5c066159c3ebe0645bd27f546093
BLAKE2b-256 7ab8a62b52588fe14db914b8f96d6a133ac6e9f323f1cf577b29ba7945e65cab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for discordanalytics-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c12dbdedba03ef0538b3819f9bbe3ffe38b3c8682a1fcf0651c5248f635b09c
MD5 6bb20f889acb8cd0cdd52a49a74fb595
BLAKE2b-256 c0636f0325b7a8190882f0ca71c2aab30e11b35ffefd73746b7355914cd78b24

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