Skip to main content

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

Support Server

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",
)

Without Embed





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",
)

With Embed



Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ezhook, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size ezhook-0.0.2-py3-none-any.whl (3.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size ezhook-0.0.2.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page