diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index bdd7b8c5..f193c1d2 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -31,5 +31,5 @@ jobs: file: ./Dockerfile push: true tags: | - ghcr.io/itz-fork/meganzbot:latest - ghcr.io/itz-fork/meganzbot:${{ github.sha }} + ghcr.io/partiallywritten/meganzbot:latest + ghcr.io/partiallywritten/meganzbot:${{ github.sha }} diff --git a/.github/workflows/notify.yml b/.github/workflows/notify.yml index 104c0a04..4967d826 100644 --- a/.github/workflows/notify.yml +++ b/.github/workflows/notify.yml @@ -5,7 +5,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Notify the commit on Telegram - uses: Itz-fork/github-telegram-notify@main + uses: partiallywritten/github-telegram-notify@main with: bot_token: '${{ secrets.BOT_TOKEN }}' chat_id: '${{ secrets.CHAT_ID }}' \ No newline at end of file diff --git a/README.md b/README.md index 74a1cf24..19c4ef5a 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ A simple telegram bot to download, upload files or folders from [Mega.nz](https: Deploy your own Bot ♥️! **Star 🌟 Fork 🍴 and Deploy** ### Heroku -[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://github.com/Itz-fork/X-Bin-Patch#deployment) +[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://github.com/partiallywritten/X-Bin-Patch#deployment) ### Local @@ -44,28 +44,28 @@ Use official Docker image to run Mega.nz-Bot 🐳 - Create the .env file (see [env sample](/.env.sample) and [config vars](https://itz-fork.gitbook.io/mega.nz-bot/config-vars)) - Pull the docker image ``` - docker pull ghcr.io/itz-fork/meganzbot:latest + docker pull ghcr.io/partiallywritten/meganzbot:latest ``` - Run it! (`.env` is path to .env file you created) ``` - docker run --env-file .env ghcr.io/itz-fork/meganzbot + docker run --env-file .env ghcr.io/partiallywritten/meganzbot ``` **Legacy Metods,** 1) Using installer script - If you're using a linux distro with `apt`, `apk`, `pacman` or `dnf` as the package manager, you can use the official installer script to setup [Mega.nz-Bot](https://github.com/Itz-fork/Mega.nz-Bot). + If you're using a linux distro with `apt`, `apk`, `pacman` or `dnf` as the package manager, you can use the official installer script to setup [Mega.nz-Bot](https://github.com/partiallywritten/Mega.nz-Bot). ```bash - curl -sS -O https://raw.githubusercontent.com/Itz-fork/Mega.nz-Bot/main/installer.sh && chmod +x installer.sh && ./installer.sh + curl -sS -O https://raw.githubusercontent.com/partiallywritten/Mega.nz-Bot/main/installer.sh && chmod +x installer.sh && ./installer.sh ``` 2) Using classic git clone - Clone the Repo ``` - git clone https://github.com/Itz-fork/Mega.nz-Bot + git clone https://github.com/partiallywritten/Mega.nz-Bot ``` - Enter the directory ``` diff --git a/installer.sh b/installer.sh index 06d6bba7..481966ae 100644 --- a/installer.sh +++ b/installer.sh @@ -56,7 +56,7 @@ function show_error() { # CLone git repo function clone_repo() { show_process "Cloning Mega.nz-Bot repository" - git clone https://github.com/Itz-fork/Mega.nz-Bot.git || show_error "git: Clone failed" + git clone https://github.com/partiallywritten/Mega.nz-Bot.git || show_error "git: Clone failed" show_process "Changing current working directory" cd Mega.nz-Bot || show_error "fs: 'Mega.nz-Bot' not found" diff --git a/megadl/__init__.py b/megadl/__init__.py index 4e43bd33..a402bd52 100644 --- a/megadl/__init__.py +++ b/megadl/__init__.py @@ -1,6 +1,6 @@ -# Copyright (c) 2021 - Present Itz-fork -# Author: https://github.com/Itz-fork -# Project: https://github.com/Itz-fork/Mega.nz-Bot +# Copyright (c) 2021 - Present partiallywritten +# Author: https://github.com/partiallywritten +# Project: https://github.com/partiallywritten/Mega.nz-Bot # Description: __init__.py import os diff --git a/megadl/__main__.py b/megadl/__main__.py index 036cd46b..67ece49b 100644 --- a/megadl/__main__.py +++ b/megadl/__main__.py @@ -1,6 +1,6 @@ -# Copyright (c) 2021 - Present Itz-fork -# Author: https://github.com/Itz-fork -# Project: https://github.com/Itz-fork/Mega.nz-Bot +# Copyright (c) 2021 - Present partiallywritten +# Author: https://github.com/partiallywritten +# Project: https://github.com/partiallywritten/Mega.nz-Bot # Description: __main__.py from pyrogram import idle diff --git a/megadl/helpers/crypt.py b/megadl/helpers/crypt.py index 1f01dbd9..eebaf533 100644 --- a/megadl/helpers/crypt.py +++ b/megadl/helpers/crypt.py @@ -1,8 +1,8 @@ -# Copyright (c) 2021 - Present Itz-fork -# Author: https://github.com/Itz-fork -# Project: https://github.com/Itz-fork/Mega.nz-Bot +# Copyright (c) 2021 - Present partiallywritten +# Author: https://github.com/partiallywritten +# Project: https://github.com/partiallywritten/Mega.nz-Bot # Description: Decryption functions -# Credits: https://github.com/Itz-fork/pyro-mega.py/blob/master/src/mega/crypto.py +# Credits: https://github.com/partiallywritten/pyro-mega.py/blob/master/src/mega/crypto.py import re import json diff --git a/megadl/helpers/cypher.py b/megadl/helpers/cypher.py index bcdcb8d6..ab7da2b8 100644 --- a/megadl/helpers/cypher.py +++ b/megadl/helpers/cypher.py @@ -1,6 +1,6 @@ -# Copyright (c) 2021 - Present Itz-fork -# Author: https://github.com/Itz-fork -# Project: https://github.com/Itz-fork/Mega.nz-Bot +# Copyright (c) 2021 - Present partiallywritten +# Author: https://github.com/partiallywritten +# Project: https://github.com/partiallywritten/Mega.nz-Bot # Description: Custom pyrogram client useful methods import os @@ -126,7 +126,7 @@ def __init__(self): print("> Checking for updates") try: remote_updates = requests.get( - "https://raw.githubusercontent.com/Itz-fork/Mega.nz-Bot/main/updates.json", + "https://raw.githubusercontent.com/partiallywritten/Mega.nz-Bot/main/updates.json", timeout=10 ).json() diff --git a/megadl/helpers/database.py b/megadl/helpers/database.py index f37d4aa4..bb43288b 100644 --- a/megadl/helpers/database.py +++ b/megadl/helpers/database.py @@ -1,6 +1,6 @@ -# Copyright (c) 2021 - Present Itz-fork -# Author: https://github.com/Itz-fork -# Project: https://github.com/Itz-fork/Mega.nz-Bot +# Copyright (c) 2021 - Present partiallywritten +# Author: https://github.com/partiallywritten +# Project: https://github.com/partiallywritten/Mega.nz-Bot # Description: Database functions from os import getenv diff --git a/megadl/helpers/files.py b/megadl/helpers/files.py index 250a7b43..07fd8d5c 100644 --- a/megadl/helpers/files.py +++ b/megadl/helpers/files.py @@ -1,6 +1,6 @@ -# Copyright (c) 2021 - Present Itz-fork -# Author: https://github.com/Itz-fork -# Project: https://github.com/Itz-fork/Mega.nz-Bot +# Copyright (c) 2021 - Present partiallywritten +# Author: https://github.com/partiallywritten +# Project: https://github.com/partiallywritten/Mega.nz-Bot # Description: File system functions from time import time diff --git a/megadl/helpers/pyros.py b/megadl/helpers/pyros.py index b56d1b25..1cfc33d2 100644 --- a/megadl/helpers/pyros.py +++ b/megadl/helpers/pyros.py @@ -1,6 +1,6 @@ -# Copyright (c) 2021 - Present Itz-fork -# Author: https://github.com/Itz-fork -# Project: https://github.com/Itz-fork/Mega.nz-Bot +# Copyright (c) 2021 - Present partiallywritten +# Author: https://github.com/partiallywritten +# Project: https://github.com/partiallywritten/Mega.nz-Bot # Description: Tools and helper functions related to pyrogram from time import time diff --git a/megadl/helpers/sysfncs.py b/megadl/helpers/sysfncs.py index 053e4d25..89dbca4e 100644 --- a/megadl/helpers/sysfncs.py +++ b/megadl/helpers/sysfncs.py @@ -1,6 +1,6 @@ -# Copyright (c) 2021 - Present Itz-fork -# Author: https://github.com/Itz-fork -# Project: https://github.com/Itz-fork/Mega.nz-Bot +# Copyright (c) 2021 - Present partiallywritten +# Author: https://github.com/partiallywritten +# Project: https://github.com/partiallywritten/Mega.nz-Bot # Description: Shell, loops and other sys functions import asyncio diff --git a/megadl/lib/ddl.py b/megadl/lib/ddl.py index af67d16d..6cbbaa6b 100644 --- a/megadl/lib/ddl.py +++ b/megadl/lib/ddl.py @@ -1,6 +1,6 @@ -# Copyright (c) 2021 - Present Itz-fork -# Author: https://github.com/Itz-fork -# Project: https://github.com/Itz-fork/Mega.nz-Bot +# Copyright (c) 2021 - Present partiallywritten +# Author: https://github.com/partiallywritten +# Project: https://github.com/partiallywritten/Mega.nz-Bot # Description: Downloader for direct download links and gdrive # Optimized for handling thousands of simultaneous connections diff --git a/megadl/lib/megatools.py b/megadl/lib/megatools.py index 7f79e8fa..d2491eed 100644 --- a/megadl/lib/megatools.py +++ b/megadl/lib/megatools.py @@ -1,6 +1,6 @@ -# Copyright (c) 2021 - Present Itz-fork -# Author: https://github.com/Itz-fork -# Project: https://github.com/Itz-fork/Mega.nz-Bot +# Copyright (c) 2021 - Present partiallywritten +# Author: https://github.com/partiallywritten +# Project: https://github.com/partiallywritten/Mega.nz-Bot # Description: Wrapper for megatools cli with extended features import os @@ -51,8 +51,8 @@ class MegaTools: """ Helper class for pyrogram bots to interact with megatools cli - Author: https://github.com/Itz-fork - Project: https://github.com/Itz-fork/Mega.nz-Bot + Author: https://github.com/partiallywritten + Project: https://github.com/partiallywritten/Mega.nz-Bot """ def __init__(self, tg_client, pre_conf=None) -> None: @@ -360,7 +360,7 @@ def __genErrorMsg(self, bs): Please make sure that you've provided the correct username and password. -You can open a new issue if the problem persists - https://github.com/Itz-fork/Mega.nz-Bot/issues +You can open a new issue if the problem persists - https://github.com/partiallywritten/Mega.nz-Bot/issues """ async def __checkErrors(self, out): @@ -434,7 +434,7 @@ def __init__(self) -> None: class LoginError(Exception): def __init__(self) -> None: super().__init__( - "Unable to login to your mega.nz account. \n\nYou can open a new issue if the problem persists - https://github.com/Itz-fork/Mega.nz-Bot/issues" + "Unable to login to your mega.nz account. \n\nYou can open a new issue if the problem persists - https://github.com/partiallywritten/Mega.nz-Bot/issues" ) diff --git a/megadl/lib/splitter.py b/megadl/lib/splitter.py index 2e3df219..7af5208f 100644 --- a/megadl/lib/splitter.py +++ b/megadl/lib/splitter.py @@ -1,6 +1,6 @@ -# Copyright (c) 2021 - Present Itz-fork -# Author: https://github.com/Itz-fork -# Project: https://github.com/Itz-fork/Mega.nz-Bot +# Copyright (c) 2021 - Present partiallywritten +# Author: https://github.com/partiallywritten +# Project: https://github.com/partiallywritten/Mega.nz-Bot # Description: Optimized async file splitter for resource-constrained environments import os import asyncio diff --git a/megadl/modules/admin.py b/megadl/modules/admin.py index 377ba948..43678757 100644 --- a/megadl/modules/admin.py +++ b/megadl/modules/admin.py @@ -1,6 +1,6 @@ -# Copyright (c) 2021 - Present Itz-fork -# Author: https://github.com/Itz-fork -# Project: https://github.com/Itz-fork/Mega.nz-Bot +# Copyright (c) 2021 - Present partiallywritten +# Author: https://github.com/partiallywritten +# Project: https://github.com/partiallywritten/Mega.nz-Bot # Description: Admin functions from pyrogram import filters diff --git a/megadl/modules/auth.py b/megadl/modules/auth.py index 39d94cbc..bb1a0d33 100644 --- a/megadl/modules/auth.py +++ b/megadl/modules/auth.py @@ -1,6 +1,6 @@ -# Copyright (c) 2021 - Present Itz-fork -# Author: https://github.com/Itz-fork -# Project: https://github.com/Itz-fork/Mega.nz-Bot +# Copyright (c) 2021 - Present partiallywritten +# Author: https://github.com/partiallywritten +# Project: https://github.com/partiallywritten/Mega.nz-Bot # Description: Authorize mega account of users diff --git a/megadl/modules/bonus.py b/megadl/modules/bonus.py index 1a2e26fd..cfec8448 100644 --- a/megadl/modules/bonus.py +++ b/megadl/modules/bonus.py @@ -1,6 +1,6 @@ -# Copyright (c) 2021 - Present Itz-fork -# Author: https://github.com/Itz-fork -# Project: https://github.com/Itz-fork/Mega.nz-Bot +# Copyright (c) 2021 - Present partiallywritten +# Author: https://github.com/partiallywritten +# Project: https://github.com/partiallywritten/Mega.nz-Bot # Description: Bonus functions such as file/folder info, proxy setting and account status from pyrogram import filters diff --git a/megadl/modules/callbacks.py b/megadl/modules/callbacks.py index e43da499..4980f72f 100644 --- a/megadl/modules/callbacks.py +++ b/megadl/modules/callbacks.py @@ -1,6 +1,6 @@ -# Copyright (c) 2021 - Present Itz-fork -# Author: https://github.com/Itz-fork -# Project: https://github.com/Itz-fork/Mega.nz-Bot +# Copyright (c) 2021 - Present partiallywritten +# Author: https://github.com/partiallywritten +# Project: https://github.com/partiallywritten/Mega.nz-Bot # Description: Callbacks that can be used globally import logging diff --git a/megadl/modules/generals.py b/megadl/modules/generals.py index 4b394706..1ceefaf0 100644 --- a/megadl/modules/generals.py +++ b/megadl/modules/generals.py @@ -1,6 +1,6 @@ -# Copyright (c) 2021 - Present Itz-fork -# Author: https://github.com/Itz-fork -# Project: https://github.com/Itz-fork/Mega.nz-Bot +# Copyright (c) 2021 - Present partiallywritten +# Author: https://github.com/partiallywritten +# Project: https://github.com/partiallywritten/Mega.nz-Bot # Description: General commands of the bot @@ -15,7 +15,7 @@ async def start_msg(_: CypherClient, msg: Message): await msg.reply_text( f""" -Hi `{msg.from_user.first_name}` 👋, I'm [Mega.nz-Bot](https://github.com/Itz-fork/Mega.nz-Bot)! +Hi `{msg.from_user.first_name}` 👋, I'm [Mega.nz-Bot](https://github.com/partiallywritten/Mega.nz-Bot)! I can help you download, upload files or folders from telegram. Not sure what to do? Check /help for more info 😇 diff --git a/megadl/modules/mega_dl.py b/megadl/modules/mega_dl.py index cac5641a..47576e6d 100644 --- a/megadl/modules/mega_dl.py +++ b/megadl/modules/mega_dl.py @@ -1,6 +1,6 @@ -# Copyright (c) 2021 - Present Itz-fork -# Author: https://github.com/Itz-fork -# Project: https://github.com/Itz-fork/Mega.nz-Bot +# Copyright (c) 2021 - Present partiallywritten +# Author: https://github.com/partiallywritten +# Project: https://github.com/partiallywritten/Mega.nz-Bot # Description: Handle mega.nz download function diff --git a/megadl/modules/mega_up.py b/megadl/modules/mega_up.py index c3190404..bb653f7d 100644 --- a/megadl/modules/mega_up.py +++ b/megadl/modules/mega_up.py @@ -1,6 +1,6 @@ -# Copyright (c) 2021 - Present Itz-fork -# Author: https://github.com/Itz-fork -# Project: https://github.com/Itz-fork/Mega.nz-Bot +# Copyright (c) 2021 - Present partiallywritten +# Author: https://github.com/partiallywritten +# Project: https://github.com/partiallywritten/Mega.nz-Bot # Description: Handle mega.nz upload function from time import time diff --git a/scripts/clear_all.sh b/scripts/clear_all.sh index 3ccda387..e79a7b81 100644 --- a/scripts/clear_all.sh +++ b/scripts/clear_all.sh @@ -2,7 +2,7 @@ # Header start() { - echo -e "\e[1m\e[101m Script by Itz-fork \e[0m \n" + echo -e "\e[1m\e[101m Script by partiallywritten \e[0m \n" } # Write down all sub dirs to one text file