Skip to main content

A simple Discord notification tool using webhooks

Project description

Discord Notifier

A simple Python package for sending notifications to Discord channels using webhooks.

Installation

pip install dugudugu-discord-notifier

Usage

from notifier.discord_notifier import DiscordNotifier

# Initialize with webhook URL
webhook_url = "your-webhook-url-here"  # Discord webhook URL
notifier = DiscordNotifier(webhook_url)

# Send a simple message
notifier.send_message("Hello, World!")

# Send a message with title
notifier.send_message("This is the message content", "This is the title")

How to get Discord Webhook URL:

  1. Go to your Discord server
  2. Right-click on the channel you want to send messages to
  3. Click 'Edit Channel'
  4. Click 'Integrations'
  5. Click 'Create Webhook' (or 'View Webhooks' if you already have one)
  6. Click 'New Webhook'
  7. Copy the Webhook URL

Features

  • Simple and easy to use
  • Supports markdown formatting
  • Timeout handling
  • Error reporting

Requirements

  • Python 3.7+
  • requests

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

dugudugu_discord_notifier-0.3.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

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

dugudugu_discord_notifier-0.3.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file dugudugu_discord_notifier-0.3.0.tar.gz.

File metadata

  • Download URL: dugudugu_discord_notifier-0.3.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.13.1 Windows/11

File hashes

Hashes for dugudugu_discord_notifier-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b0cb0406777ef89ba72f3273fdc4150f736c43f132f2705298d7ea1a9ef3f54c
MD5 d628c067057372f4b33729dde5787926
BLAKE2b-256 8b61ffd5715fdae2890e8a6df952b7635782a6fbad9d809e2206d518cddf84d2

See more details on using hashes here.

File details

Details for the file dugudugu_discord_notifier-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dugudugu_discord_notifier-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a767faf67e5b64a47bdbaf05c629437d96728f69abbe10a83dbb5b890afc2dbd
MD5 5076a9a61b35b1a8203fa7500f13abfc
BLAKE2b-256 5dd1d2dc0836612d511e9ba0492c751fa55d0f86be86c6ad727d43c96f017280

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