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

Uploaded Source

Built Distribution

discordanalytics-0.0.4-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: discordanalytics-0.0.4.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for discordanalytics-0.0.4.tar.gz
Algorithm Hash digest
SHA256 131b81f9b0808e489f564e7b7e682f56912250ff1b0ba623d2e6b7298fd20d6b
MD5 ff6facab6d327c27d91234aede01e47c
BLAKE2b-256 27c22d6147c67d509ece4cb0f4c06c5d7d8555a989a1e4a3b699cfc58ec03c52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for discordanalytics-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e4ccdb145f904ef4fc042ddaaff37b85136c0fdcbb68cede72266445cf17ee51
MD5 668e464670cd2834a1d4495fe7988e5b
BLAKE2b-256 f07b193783d66c3a3fce791d2f5bad974e4395a6d8a4ff059c01d470865622c8

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