-
-
Notifications
You must be signed in to change notification settings - Fork 556
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug Fixes: - Correct the environment variable name from HK_TEAM_NAME to HEROKU_TEAM_NAME in the CI configuration. Enhancements: - Remove unnecessary directories and files during the deployment process to streamline the workflow. CI: - Update the CI workflow to deploy only from the main branch instead of a separate deploy branch. Deployment: - Add a Dockerfile for containerized deployment and a requirements.txt file for managing dependencies. Documentation: - Revise the README to improve clarity and update deployment instructions, including a new section on finalizing setup.
- Loading branch information
Showing
5 changed files
with
133 additions
and
40 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
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,10 @@ | ||
FROM 5hojib/aeon:latest | ||
|
||
WORKDIR /usr/src/app | ||
RUN chmod 777 /usr/src/app | ||
|
||
COPY requirements.txt . | ||
RUN pip3 install --break-system-packages --ignore-installed --no-cache-dir -r requirements.txt | ||
|
||
COPY . . | ||
CMD ["bash", "start.sh"] |
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 |
---|---|---|
@@ -1,59 +1,73 @@ | ||
*** | ||
![](https://github.com/5hojib/5hojib/raw/main/images/Aeon-MLTB.gif) | ||
*** | ||
|
||
--- | ||
|
||
# Aeon Bot | ||
|
||
Aeon is a streamlined and feature-rich bot designed for efficient deployment and enhanced functionality. | ||
|
||
--- | ||
|
||
## Features | ||
|
||
- **Streamlined Code**: Unnecessary features and code have been removed for a more efficient and minimalistic bot. | ||
- **Heroku Deployment**: Fully configured for easy deployment on Heroku. | ||
- **Enhanced Functionality**: Includes additional features from various sources, improving the bot's overall capabilities. | ||
- **Minimalistic and Optimized**: Simplified by removing unnecessary code for better performance. | ||
- **Effortless Deployment**: Fully configured for quick and easy deployment to Heroku. | ||
- **Enhanced Capabilities**: Integrates features from multiple sources to provide a versatile bot experience. | ||
|
||
--- | ||
|
||
## Deployment Instructions (Heroku) | ||
|
||
Follow these steps to deploy Aeon to Heroku: | ||
|
||
## Heroku Deployment Instructions | ||
### 1. Fork and Star the Repository | ||
- Click the **Fork** button at the top-right corner of this repository. | ||
- Give the repository a star to show your support. | ||
|
||
1. **Fork and Star the Repository** | ||
- Start by forking and starring this repository. | ||
- When forking, ensure that the option "Copy the default branch only" is unchecked before forking the repository. | ||
### 2. Navigate to Your Forked Repository | ||
- Access your forked version of this repository. | ||
|
||
2. **Navigate to Your Forked Repository** | ||
- Once the repository is forked, navigate to your forked repository. | ||
### 3. Enable GitHub Actions | ||
- Go to the **Settings** tab of your forked repository. | ||
- Enable **Actions** by selecting the appropriate option in the settings. | ||
|
||
3. **Access the Settings** | ||
- Go to the settings of your forked repository. | ||
- Enable all actions in the settings. | ||
### 4. Run the Deployment Workflow | ||
1. Open the **Actions** tab. | ||
2. Select the `Deploy to Heroku` workflow from the available list. | ||
3. Click **Run workflow** and fill out the required inputs: | ||
- **BOT_TOKEN**: Your Telegram bot token. | ||
- **OWNER_ID**: Your Telegram ID. | ||
- **DATABASE_URL**: MongoDB connection string. | ||
- **TELEGRAM_API**: Telegram API ID (from [my.telegram.org](https://my.telegram.org/)). | ||
- **TELEGRAM_HASH**: Telegram API hash (from [my.telegram.org](https://my.telegram.org/)). | ||
- **HEROKU_APP_NAME**: Name of your Heroku app. | ||
- **HEROKU_EMAIL**: Email address associated with your Heroku account. | ||
- **HEROKU_API_KEY**: API key from your Heroku account. | ||
- **HEROKU_TEAM_NAME** (Optional): Required only if deploying under a Heroku team account. | ||
|
||
4. **Run Action Workflow** | ||
- Go to the **Actions** tab. | ||
- Select the `Deploy to Heroku` action from the list of workflows. | ||
- Click on **Run workflow**. | ||
- Fill in the following variables in the form: | ||
- `BOT_TOKEN` | ||
- `OWNER_ID` | ||
- `DATABASE_URL` | ||
- `TELEGRAM_API` | ||
- `TELEGRAM_HASH` | ||
- `HEROKU_APP_NAME` | ||
- `HEROKU_EMAIL` | ||
- `HEROKU_API_KEY` | ||
- Run the action workflow. | ||
4. Run the workflow and wait for it to complete. | ||
|
||
5. **Finalize the Deployment** | ||
- After the deployment is complete, finalize the remaining variables. | ||
- Upload sensitive files like `token.pickle` using the `/botsettings` command. | ||
### 5. Finalize Setup | ||
- After deployment, configure any remaining variables in your Heroku dashboard. | ||
- Use the `/botsettings` command to upload sensitive files like `token.pickle` if needed. | ||
|
||
--- | ||
|
||
## Contributing | ||
|
||
Feel free to submit pull requests and open issues for any bugs or feature requests. Contributions are always welcome! | ||
We welcome contributions! Whether it's bug fixes, feature enhancements, or general improvements: | ||
- **Report issues**: Open an issue for bugs or suggestions. | ||
- **Submit pull requests**: Share your contributions with the community. | ||
|
||
--- | ||
|
||
## License | ||
|
||
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details. | ||
This project is licensed under the MIT License. Refer to the [LICENSE](LICENSE) file for details. | ||
|
||
--- | ||
|
||
## Acknowledgements | ||
|
||
- Thanks to the original developers of the Mirror-Leech-Telegram-Bot. | ||
- Contributions and feature integrations from various repositories. | ||
- Special thanks to the original developers of the [Mirror-Leech-Telegram-Bot](https://github.com/anasty17/mirror-leech-telegram-bot). | ||
- Gratitude to contributors from various repositories whose features have been integrated into Aeon. |
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,43 @@ | ||
aiohttp | ||
aiofiles | ||
aioshutil | ||
anytree==2.8.0 | ||
apscheduler | ||
aria2p | ||
asyncio | ||
beautifulsoup4 | ||
bencoding | ||
cinemagoer | ||
cloudscraper | ||
dnspython | ||
electrogram | ||
feedparser | ||
flask | ||
gevent | ||
google-api-python-client | ||
google-auth-httplib2 | ||
google-auth-oauthlib | ||
gunicorn | ||
httpx | ||
langcodes | ||
lxml | ||
motor | ||
mutagen | ||
markdown | ||
natsort | ||
pillow | ||
psutil | ||
pybase64 | ||
pycountry | ||
python-dotenv | ||
pyshorteners | ||
python-magic | ||
qbittorrent-api | ||
requests | ||
speedtest-cli | ||
telegraph | ||
tenacity | ||
uv | ||
uvloop | ||
xattr | ||
yt-dlp[default] |
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,7 @@ | ||
OWNER_ID = "" | ||
TELEGRAM_API = "" | ||
TELEGRAM_HASH = "" | ||
DATABASE_URL = "" | ||
|
||
UPSTREAM_REPO = "https://github.com/5hojib/Aeon" | ||
UPSTREAM_BRANCH = "main" |