Skip to main content

Simple module for sending dsicord webhooks

Project description

GitHub PyPI Tests

inford 📬

inford is a python library for sending dsicord webhooks.

Installation

Use the package manager pip to install foobar.

pip install inford

Usage

from inford import DiscordWebhook

web = DiscordWebhook(
    webhook_url="https://discord.com/api/webhooks/123***/abc***",
    username="inford",
    avatar_url="https://avatars.githubusercontent.com/u/55992548?v=4",
    content="Lorem ipsum dolor sit",
    title="Hey!",
    color="#0099ff",
    description="Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
    author_name="INFORD",
    author_url="https://github.com/Prathamesh-B/inford",
    footer_text="thank you",
    footer_icon="https://user-images.githubusercontent.com/5679180/79618120-0daffb80-80be-11ea-819e-d2b0fa904d07.gif",
    image="https://avatars.githubusercontent.com/u/55992548?v=4",
    thumbnail="https://avatars.githubusercontent.com/u/55992548?v=4",
)
web.send() #or use send=True as a parameter

Image

Presets

from inford import Presets

web = Presets(
    webhook_url="https://discord.com/api/webhooks/123***/AbC***",
)

web.info("Python", "Update available")
web.error("Database", "No data found")
web.warn("System", "Ram overload")
web.success("Program", "Executed successfully")

Image

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Project details


Download files

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

Source Distribution

inford-1.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

inford-1.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file inford-1.1.0.tar.gz.

File metadata

  • Download URL: inford-1.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6

File hashes

Hashes for inford-1.1.0.tar.gz
Algorithm Hash digest
SHA256 a446e47ca2314dea1569bef34491e3e016936d5b7fde54903baf2344498e0960
MD5 dba9b230b9dbafda40f6eb8649828dd2
BLAKE2b-256 4cc9b3558fa4613829f1cf378ef64712c59d23580caf5b2338495f1955045140

See more details on using hashes here.

File details

Details for the file inford-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: inford-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6

File hashes

Hashes for inford-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 14cfb5ce9cee99666d004876fa066333b6d4b35aef8030f00449eb4f3c97821b
MD5 ce42e1292f26845e5f903723ad7e4282
BLAKE2b-256 415af966b628d61d01c1c45bfb8a6ca83f63e6c3d1db044b9ec59cc692d5091b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page