Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thetestgame/discordhooks
An open source library for sending messages to Discord from Python using Discord's built in channel webhooks
https://github.com/thetestgame/discordhooks
discord discord-webhooks python2 python3 slack-webhook webhooks
Last synced: 15 days ago
JSON representation
An open source library for sending messages to Discord from Python using Discord's built in channel webhooks
- Host: GitHub
- URL: https://github.com/thetestgame/discordhooks
- Owner: thetestgame
- License: bsd-3-clause
- Created: 2017-10-13T19:42:37.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-08T04:17:54.000Z (over 5 years ago)
- Last Synced: 2024-12-11T13:51:27.258Z (23 days ago)
- Topics: discord, discord-webhooks, python2, python3, slack-webhook, webhooks
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
DiscordHooks
============
![GitHub issues](https://img.shields.io/github/issues/NxtStudios/DiscordHooks?style=for-the-badge)
![PyPI - Status](https://img.shields.io/pypi/status/discordhooks?style=for-the-badge)DiscordHooks is an open source library for sending messages to Discord from Python 2.7/3.x using Discord's built in channel webhooks
## Dependencies
* requests## Supports
DiscordHooks currently supports the following Discord webhooks
* Generic
* Slack## Example
*Generic Webhook*
```python
from discordhooks import GenericWebhook"""
Generic Webhook
"""
message = GenericWebhook('examplewebhook.com', 'Hello World!', author='DiscordHooks')
message.send()
```*Slack Webhook*
```python
from discordhooks import SlackWebhook, SlackAttachment"""
Slack Webhook
"""
message = SlackWebhook('examplewebhook.com', author='DiscordHooks')attachment = SlackAttachment(
pretext='Hello world! I am an example Slack webhook!',
title='Example Webhook',
title_link='https://github.com/NxtStudios/DiscordHooks',
image_url='https://cdn.worldvectorlogo.com/logos/discord.svg')
message.addAttachment(attachment)message.send()
```## License
Licensed under the BSD 3-clause "New" or "Revised" license. See the provided LICENSE file for details