Skip to main content

A tiny Python library for sending Discord webhook messages.

Project description

webhookspot

webhookspot is a tiny Python library for sending Discord webhook messages.

Install locally

Open a terminal in this folder and run:

py -m pip install .

or:

pip install .

Example

import webhookspot

x = webhookspot.Webhook("https://discord.com/api/webhooks/YOUR_WEBHOOK_ID/YOUR_WEBHOOK_TOKEN")
x.send_message("hello")

More examples

Change the webhook username:

import webhookspot

hook = webhookspot.Webhook("https://discord.com/api/webhooks/YOUR_WEBHOOK_ID/YOUR_WEBHOOK_TOKEN")
hook.send_message("Hello from webhookspot!", username="WebhookSpot Bot")

Send an embed:

import webhookspot

hook = webhookspot.Webhook("https://discord.com/api/webhooks/YOUR_WEBHOOK_ID/YOUR_WEBHOOK_TOKEN")

hook.send_embed(
    title="WebhookSpot",
    description="This is an embed message.",
    color=0x5865F2
)

Safety note

Do not post your real Discord webhook URL publicly. Anyone with the URL can send messages through it.

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

webhookspot-1.0.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

webhookspot-1.0.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file webhookspot-1.0.0.tar.gz.

File metadata

  • Download URL: webhookspot-1.0.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for webhookspot-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9880b3a89478a9ec3064307812d6afe71b4f364a33d6c528db8314f1d9775970
MD5 0ac2fcbbf9e350cb72f0aa168e5e9161
BLAKE2b-256 42850965059fef057fda771d06103c380fe4bd45d7932ad38dfb22d58170186f

See more details on using hashes here.

File details

Details for the file webhookspot-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: webhookspot-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for webhookspot-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 13398c1f98b4b6f7c2c7eb0bff90399cbdf3d0b36760f918a3a72c122f8ccd3d
MD5 ddcc1b09359f124444b42243c1952279
BLAKE2b-256 45d738402aec07af448a0e7d2c415b6e520814d2ff4e98cad4a935ce2ebf6364

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