Skip to main content

Discord Notification

Project description

discord-ntfy

A simple Python library to send notifications to Discord via webhooks.

Installation

pip install discord-ntfy

Usage

  1. Create a Discord webhook URL in your Discord server settings
  2. Set the webhook URL in your .env file:
DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/YOUR_WEBHOOK_URL
  1. Use the library:
from discord_ntfy import notify_discord

# Send a notification
notify_discord("Hello, Discord!")

# Or provide webhook URL directly
notify_discord("Hello!", webhook_url="https://discord.com/api/webhooks/...")

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

discord_ntfy-0.1.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

discord_ntfy-0.1.1-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file discord_ntfy-0.1.1.tar.gz.

File metadata

  • Download URL: discord_ntfy-0.1.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.21

File hashes

Hashes for discord_ntfy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 63930d01f62cfb85fefea3b046d7c7aac14455387439539af7d2896a7b04e22e
MD5 227e6635378ed7757c975069c7f9b35e
BLAKE2b-256 fb7ec877a0c13108cb06a56e045f6aa86f622cab330d21eb4b4b101a321ff8ff

See more details on using hashes here.

File details

Details for the file discord_ntfy-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: discord_ntfy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.21

File hashes

Hashes for discord_ntfy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8a2eb5a63510488250e61be65306fe86602912c0d582f9694167b672ad0a0500
MD5 13443c0f8edf17fc1be0c11aa3349ac0
BLAKE2b-256 fff055a51a9c06eeb6b2c1b76c98caa48320ee0af66c99ee814ca9e8b8475e04

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