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.0.tar.gz (2.0 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.0-py3-none-any.whl (1.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: discord_ntfy-0.1.0.tar.gz
  • Upload date:
  • Size: 2.0 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.0.tar.gz
Algorithm Hash digest
SHA256 ffec704fa976d4e521f77326bbc9b71d6e94693f10c341aa8a90f0866f82e70b
MD5 d0f03bd0a3962235c5f6dcc28f1993cc
BLAKE2b-256 9282def0dff9ddb057a230de5322d5a00c39e9ab89b382447f6b52f90e1c35a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: discord_ntfy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ac8b0633980934618e6885aeaa37b4bbce39748493ef857c52eacdd3e3db48e
MD5 8ad78473490e87e10a2b2a1d3b2a3714
BLAKE2b-256 1d96883eb55a53e8f2812e2f95c4dea5b4322020865c79c8b1cb6e510ffb1aee

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