Inspired by quick.hook, this makes sending webhooks in discord .py much, much easier! Most of the functions below are wrapped in a:
@bot.command
async def command(ctx):
IMPORTANT NOTE
for editors without pip, such as repl.it, to install the package, instead of pip install ezhook you would put the following at the top of your script:
import os
os.system('pip install ezhook')
import ezhook
Examples:
Without Embed:
import ezhook
await ezhook.send_hook(
bot = bot,
channel = ctx.channel,
message = "This is an example",
username = "Space Boii",
avatarURL = "https://i.imgur.com/EpTz5rOb.jpg",
)
With Embed:
import ezhook
embed=discord.Embed(title="example embed", color=3093151)
embed.add_field(name='hi',value="hello")
await ezhook.send_hook(
bot = bot,
channel = ctx.channel,
message="This is an example",
embed = embed,
username = "Space Boii",
avatarURL = "https://i.imgur.com/EpTz5rOb.jpg",
)
Release files for ezhook 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ezhook-0.0.2.tar.gz | 2.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ezhook-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.5 kB
Release files / ezhook-0.0.2.tar.gz
| Download URL | ezhook-0.0.2.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e031d202f587da9c84019bda059abc70bacc486e2d960954d5272fc474598dda
|
|
BLAKE2b-256 checksum How to use checksums |
aae7340bdd37f52aad1f3fbc7c7683c88fc891e209182a6f95117ea86ef87603
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.8.0 tqdm/4.48.2 CPython/3.8.5
|
Release files / ezhook-0.0.2-py3-none-any.whl
| Download URL | ezhook-0.0.2-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9e0608d3b72f03e8146ae333d030cb7399b470206910a604fbe6dfaaf72e11a9
|
|
BLAKE2b-256 checksum How to use checksums |
43aaa89797ecbf4c9ae798c449d53cc895ef9c4c7ecabe6f8526b841b8739778
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.8.0 tqdm/4.48.2 CPython/3.8.5
|