Metadata-Version: 2.4
Name: webhookspot
Version: 1.0.0
Summary: A tiny Python library for sending Discord webhook messages.
Author: webhookspot
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: license-file
Dynamic: requires-python
Dynamic: summary

# webhookspot

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

## Install locally

Open a terminal in this folder and run:

```bash
py -m pip install .
```

or:

```bash
pip install .
```

## Example

```python
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:

```python
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:

```python
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.
