Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/droidzed/disco-hooker
Discord Webhook backend notifier.
https://github.com/droidzed/disco-hooker
discord flask python webhook
Last synced: 4 months ago
JSON representation
Discord Webhook backend notifier.
- Host: GitHub
- URL: https://github.com/droidzed/disco-hooker
- Owner: DroidZed
- License: mit
- Created: 2023-11-07T20:53:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-09T16:00:40.000Z (6 months ago)
- Last Synced: 2024-10-10T06:54:02.001Z (4 months ago)
- Topics: discord, flask, python, webhook
- Language: Python
- Homepage:
- Size: 152 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Disco Hooker
[](https://github.com/psf/black)
[](https://pypi.org/project/leafengine/)
[](https://pycqa.github.io/isort/)
[](https://github.com/pylint-dev/pylint)
[](https://github.com/DroidZed/disco-hooker/actions/workflows/docker-image.yml)## Intro
Thi is a simple Discord Hook notifier backend written in `flask` & `discord-webhook`.

THIS PROJECT USES PYTHON TYPE HINTING FEATURES SO A VERSION OF PYTHON >= 3.10 IS ADVISED !
## Usage:
1. Docker image:
a. Pull the image:
```sh
docker pull droidzed/disco-hooker:latest
```b. Run the container:
```sh
docker run -d -p 6000:6000 -e PORT=6000 -e WEBHOOK_URL=YOUR_DISCORD_WEBHOOK_URL droidzed/disco-hooker:latest
```2. Run locally:
a. Clone the repo:
```sh
git clone https://github.com/DroidZed/disco-hooker.git
```b. Install deps:
```sh
pipenv install
```c. Create `.env` file like so:
Make sure to fill in the required variables !
d. Run:
```sh
py app.py
```3. API Request:

## Useful links:
[Discord Webhooks](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks)
[Discord Webhooks & Safety](https://discord.com/safety/using-webhooks-and-embeds)