Send discord webhooks in python with 2 lines of code!
Project description
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",
)
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 ezhook-0.0.1.tar.gz.
File metadata
- Download URL: ezhook-0.0.1.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0421256d2ae3160a5d95c520cc09a9a58fb35bd77692ac8cdb462311be25453
|
|
| MD5 |
492045e9982b185ee23edbcdc8479b75
|
|
| BLAKE2b-256 |
9d56c53bff375717490ecef8d933fe04db89cde006e7733ce0edb9fa552c15e4
|
File details
Details for the file ezhook-0.0.1-py3-none-any.whl.
File metadata
- Download URL: ezhook-0.0.1-py3-none-any.whl
- Upload date:
- Size: 1.7 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82d43f1d40d1689d7cd6fb6a9dcb19157d6c307e42e6ce3660613663aa2b20c6
|
|
| MD5 |
8af638588e62010458190cfd1fe7198b
|
|
| BLAKE2b-256 |
c35762494ce8647d4e8c4893cd800acf3cc68341f5b400bf26bccd45143c49c4
|