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.7.0.tar.gz (28.1 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.7.0-py3-none-any.whl (25.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for discordanalytics-3.7.0.tar.gz
Algorithm Hash digest
SHA256 b449a138617c03d7d3dcf7bb46184362d86f56b287f7cf0bca673391160a2c2f
MD5 656a6b57af373faa0a59a0d5b05bd246
BLAKE2b-256 eb661f301474bd533e0135dddd7459932aea43ceca07904d402bc2dfd0d005e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for discordanalytics-3.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5506980a382133c6d428742694a77ef515f7d035ea508b67474b14bd3a882a3
MD5 d772f593145f636f2526fc277f9a8eaf
BLAKE2b-256 29677a5b6bf29078adf71b6bde88c90ba4dda08694bb6c1e1a01c72ad66fdda6

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