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
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9880b3a89478a9ec3064307812d6afe71b4f364a33d6c528db8314f1d9775970
|
|
| MD5 |
0ac2fcbbf9e350cb72f0aa168e5e9161
|
|
| BLAKE2b-256 |
42850965059fef057fda771d06103c380fe4bd45d7932ad38dfb22d58170186f
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13398c1f98b4b6f7c2c7eb0bff90399cbdf3d0b36760f918a3a72c122f8ccd3d
|
|
| MD5 |
ddcc1b09359f124444b42243c1952279
|
|
| BLAKE2b-256 |
45d738402aec07af448a0e7d2c415b6e520814d2ff4e98cad4a935ce2ebf6364
|