Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
DroidZed committed Dec 12, 2023
1 parent d546be9 commit b76b3c9
Show file tree
Hide file tree
Showing 5 changed files with 117 additions and 95 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
build:
docker build -t droidzed/disco-hooker:latest .

run:
py app.py
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pylint = "*"
isort = {extras = ["pipfile_deprecated_finder"], version = "*"}

[requires]
python_version = "3.11"
python_version = "3.12"

[pipenv]
allow_prereleases = false
149 changes: 77 additions & 72 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 34 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<div align="center">
<h1>Disco Hooker</h1>


[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://pypi.org/project/leafengine/)
[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)
Expand All @@ -22,37 +21,50 @@ Thi is a simple Discord Hook notifier backend written in `flask` & `discord-webh

1. Docker image:

a. Pull the image:
```sh
docker pull droidzed/disco-hooker:latest
```
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
```
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
```
a. Clone the repo:

```sh
git clone https://github.com/DroidZed/disco-hooker.git
```

b. Install deps:
b. Install deps:

```sh
pipenv install
```
```sh
pipenv install
```

c. Run:
```sh
py app.py
```
c. Create `.env` file like so:
<br>Make sure to fill in the required variables !

![env](./images/env.png)

d. Run:

```sh
py app.py
```

3. API Request:

![API Request](/images/request.png)
![API Request](/images/request.png)

</div>

## Useful links:

[Discord Webhooks](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks)
<br>[Discord Webhooks & Safety](https://discord.com/safety/using-webhooks-and-embeds)
Binary file added images/env.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b76b3c9

Please sign in to comment.