-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0db43b
commit 1c1cb62
Showing
6 changed files
with
227 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# ------------ EXAMPLE USAGE LIKE PHOTO 1 --------------- | ||
|
||
|
||
# UI Configuration | ||
UI_TITLE=Discord Webhook Announcer | ||
|
||
# Embed Configuration | ||
WEBHOOK_URL=https://discord.com/api/webhooks/BLAH BLAH BLAH BLAH | ||
AUTHOR_IMAGE_URL= IMAGE HOSTED ONLINE ( CHECK IMG BB ) | ||
|
||
|
||
# Ui & Embed Configuration | ||
|
||
# --- Note that by changing these values, you change them both on UI & on the embed --- | ||
# --- I made it this way so it is easier for long-term usage --- | ||
|
||
|
||
TITLE1=New Movie Added | ||
FIELD1_TITLE=Movie Name | ||
INLINE1_TITLE=Country | ||
INLINE2_TITLE=Subs | ||
# --- The Field3 is the field with the link | Maybe a link on a website or anything you like --- | ||
FIELD3_TITLE=Website | ||
FIELD4_TITLE=Additional Movies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,8 @@ | |
/build/ | ||
/dist/ | ||
|
||
*.spec | ||
*.spec | ||
.env | ||
.gitignore | ||
|
||
personal_env.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
# Discord Webhook Announcer | ||
|
||
A simple and elegant application with Graphic UI for easy use to send Discord Embed Announcements to a Discord channel via webhook. Fully customizable through the .env file | ||
|
||
--- | ||
|
||
## Features | ||
|
||
- **User-Friendly Interface**: Built with PyQt6 for quick and simple GUI | ||
- **Dynamic Configurations**: Easily customize the UI (For your own usagebility) and webhook settings using a `.env` file. | ||
- **Send Announcements**: Push structured announcements to Discord channels. | ||
- **Customizable Fields**: Configure titles and inputs for movies, series, and additional details. | ||
|
||
--- | ||
|
||
## Screenshots | ||
 | ||
|
||
--- | ||
|
||
## Requirements | ||
|
||
1. **Python Version**: `3.8` or higher. | ||
2. **Required Python Packages**: | ||
- `PyQt6` | ||
- `python-dotenv` | ||
- `requests` | ||
|
||
Install dependencies using the following command: | ||
```bash | ||
pip install -r requirements.txt | ||
``` | ||
|
||
--- | ||
|
||
## Installation | ||
|
||
1. **Clone the repository**: | ||
```bash | ||
git clone <repository_url> | ||
cd <repository_name> | ||
``` | ||
|
||
2. **Create a Virtual Environment** (recommended): | ||
```bash | ||
python -m venv venv | ||
source venv/bin/activate # On Windows: venv\Scripts\activate | ||
``` | ||
|
||
3. **Install Dependencies**: | ||
```bash | ||
pip install -r requirements.txt | ||
``` | ||
|
||
4. **Setup `.env` File**: | ||
Create a `.env` file in the root directory and configure the following variables: | ||
```env | ||
# General Configuration | ||
UI_TITLE=YourIPTVDealer Movie BOT | ||
WEBHOOK_URL=https://discord.com/api/webhooks/<your_webhook> | ||
# Embed Configuration | ||
AUTHOR_IMAGE_URL=https://i.ibb.co/JjY6SNh/cropped-favicon-2.png | ||
TITLE1=New Movie Added | ||
# Field Titles | ||
FIELD1_TITLE=Name | ||
INLINE1_TITLE=Country | ||
INLINE2_TITLE=Subs | ||
FIELD3_TITLE=Website | ||
FIELD4_TITLE=Additional Movies | ||
``` | ||
|
||
5. **Run the Application**: | ||
```bash | ||
python discord_movie_bot.py | ||
``` | ||
|
||
--- | ||
|
||
## Building an Executable | ||
|
||
If you want to distribute the application as an executable, follow these steps: | ||
|
||
1. **Install PyInstaller**: | ||
```bash | ||
pip install pyinstaller | ||
``` | ||
|
||
2. **Build the Executable**: | ||
```bash | ||
pyinstaller --onefile --noconsole --add-data "assets;assets" --icon=assets/logo.ico discord_movie_bot.py | ||
``` | ||
|
||
3. The executable will be available in the `dist` folder. | ||
|
||
--- | ||
|
||
## Folder Structure | ||
``` | ||
project-root/ | ||
├── assets/ | ||
│ ├── logo.ico | ||
│ ├── screenshot.png | ||
├── discord_movie_bot.py | ||
├── requirements.txt | ||
├── .env | ||
├── README.md | ||
``` | ||
|
||
--- | ||
|
||
## Contributing | ||
|
||
Contributions are welcome! Feel free to fork the repository and submit pull requests. | ||
|
||
--- | ||
|
||
## License | ||
|
||
This project is licensed under the MIT License. See the `LICENSE` file for details. | ||
|
||
--- | ||
|
||
## Support | ||
|
||
For any issues, feel free to open an issue on the [GitHub repository](<repository_url>) or contact me directly at Discord: sparkmate | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
PyQt6==6.5.1 | ||
python-dotenv==1.0.0 | ||
requests==2.31.0 |