Discord Notification
Project description
discord-ntfy
A simple Python library to send notifications to Discord via webhooks.
Installation
pip install discord-ntfy
Usage
- Create a Discord webhook URL in your Discord server settings
- Set the webhook URL in your
.envfile:
DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/YOUR_WEBHOOK_URL
- 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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63930d01f62cfb85fefea3b046d7c7aac14455387439539af7d2896a7b04e22e
|
|
| MD5 |
227e6635378ed7757c975069c7f9b35e
|
|
| BLAKE2b-256 |
fb7ec877a0c13108cb06a56e045f6aa86f622cab330d21eb4b4b101a321ff8ff
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a2eb5a63510488250e61be65306fe86602912c0d582f9694167b672ad0a0500
|
|
| MD5 |
13443c0f8edf17fc1be0c11aa3349ac0
|
|
| BLAKE2b-256 |
fff055a51a9c06eeb6b2c1b76c98caa48320ee0af66c99ee814ca9e8b8475e04
|