ezhook-0.0.2
توضیحات
Send discord webhooks in python with 2 lines of code!
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | ezhook-0.0.2 |
| نام | ezhook |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | RJSON LABS |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://rjson.dev/ |
| آدرس اینترنتی | https://pypi.org/project/ezhook/ |
| مجوز | - |
Inspired by quick.hook, this makes sending webhooks in discord .py much, much easier!
Most of the functions below are wrapped in a:
```py
@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:
```py
import os
os.system('pip install ezhook')
import ezhook
```
[Support Server](https://discord.gg/Av4KbrX)
# __**Examples:**__
## __**Without Embed:**__
```py
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:**__
```py
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",
)
```

_ _ _ _
_ _ _ _
نیازمندی
| مقدار | نام |
|---|---|
| - | aiohttp |
| - | discord.py |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl ezhook-0.0.2:
pip install ezhook-0.0.2.whl
نصب پکیج tar.gz ezhook-0.0.2:
pip install ezhook-0.0.2.tar.gz