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.0.tar.gz
(2.0 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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffec704fa976d4e521f77326bbc9b71d6e94693f10c341aa8a90f0866f82e70b
|
|
| MD5 |
d0f03bd0a3962235c5f6dcc28f1993cc
|
|
| BLAKE2b-256 |
9282def0dff9ddb057a230de5322d5a00c39e9ab89b382447f6b52f90e1c35a0
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ac8b0633980934618e6885aeaa37b4bbce39748493ef857c52eacdd3e3db48e
|
|
| MD5 |
8ad78473490e87e10a2b2a1d3b2a3714
|
|
| BLAKE2b-256 |
1d96883eb55a53e8f2812e2f95c4dea5b4322020865c79c8b1cb6e510ffb1aee
|