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 discord-notifier

Or install from source:

git clone https://github.com/yourusername/discord-notifier.git
cd discord-notifier
pip install .

Configuration

  1. Copy .env.template to .env
  2. Add your Discord webhook URL to the .env file

Usage

from notifier.discord_notifier import DiscordNotifier

# Initialize the notifier
notifier = DiscordNotifier()

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

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

Features

  • Simple and easy to use
  • Supports markdown formatting
  • Environment-based configuration
  • Timeout handling
  • Error reporting

Requirements

  • Python 3.7+
  • requests
  • python-dotenv

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.1.0.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.

dugudugu_discord_notifier-0.1.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dugudugu_discord_notifier-0.1.0.tar.gz
  • Upload date:
  • Size: 2.4 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.1.0.tar.gz
Algorithm Hash digest
SHA256 033795f7426ad18fe08093f52d098b9015f566432a653ac390ed0d54b31d13bf
MD5 fec5b0b73474e6692062bbf9764f9717
BLAKE2b-256 dace205a3d98db65f17ace0847a4d4d3eea502378627a0466c56c15ad7539da1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dugudugu_discord_notifier-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec374a74de52afe509ee70aa1bb336757a70086ca16ee335ddf8aa2166a64491
MD5 14968e4becc927008ae2d2c34c89df9b
BLAKE2b-256 4fc18922f45bce30d7a473d3d4a0a81c2e5ccda70a9ea93e23371ec296a0f760

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