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

Uploaded Source

Built Distribution

discordanalytics-3.0.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: discordanalytics-3.0.2.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for discordanalytics-3.0.2.tar.gz
Algorithm Hash digest
SHA256 99be625c3483b4ff6e2c910731c1346de334b681fd23de7f4632657c08470d27
MD5 6e421bbf98d3b0ff1ee81dc3686b979a
BLAKE2b-256 35693ea37118d6caf435ea8f3a3227929d75ef560747a3e83186489d4fb532c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for discordanalytics-3.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e093fe5f54ab9d630f051aa1b3e9c7fc3ede6de8d0da42eb0f186f98390100ef
MD5 d83a4b7387d2e5455bd051fc5370d891
BLAKE2b-256 e5f99aafdeb8bcf7d6bc3363e30e5b1623f995495b7261ce4620b54e496ec63f

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