diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..2360674 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,19 @@ +name: Docker Image CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build the Docker image + run: sudo apt update && sudo apt install git curl python3-pip ffmpeg -y && pip3 install -U pip && npm init -y && npm i --save-dev node@16 && npm config set prefix=$(pwd)/node_modules/node && export PATH=$(pwd)/node_modules/node/bin:$PATH && pip3 install -U -r requirements.txt && python3 main.py + diff --git a/config.py b/config.py index de327c0..74d4479 100644 --- a/config.py +++ b/config.py @@ -1,5 +1,5 @@ -# FILES BELONGS TO @TEAMOCTAVE +# FILES BELONGS TO @sufiansrk10 import os @@ -7,16 +7,16 @@ from pyrogram import Client, filters from pytgcalls import PyTgCalls -# For Local Deploy +# For Local Deploys if os.path.exists(".env"): load_dotenv(".env") # Necessary Vars -API_ID = int(os.getenv("API_ID")) -API_HASH = os.getenv("API_HASH") -SESSION = os.getenv("SESSION") +API_ID = int(os.getenv("API_ID","12233538")) +API_HASH = os.getenv("API_HASH","1140f52873a95287478ab500019370c0") +SESSION = os.getenv("SESSION","BABdzmj3Yp6tapTeNpvF8vUnC5eeR8E5_tlmLo7wqdMpMjTM98l7mpH4baijSBYm1hnswV4aXCOXW6qvu9C657XvfdBg_-7kWM4ZQpaj52ViICS0hnaDosvI9IO0hie8lvNVcaJSkecvkGbxtLuYPU8ab1xpCSHmACgzVTHgR8FvVXGIey2rImpXn7wmqp9AMwa_ZJl0MDGD9AzzcJj9pk43kfQVZbnuyyL75ApGjl17jdxMiQumYb495da_i9MmmzWf2P-UgBvXZFoX8b0_PIIKwSMX56aupi5BePY924ELa2EAXDxyN5T_8x-vqYHj-TL3LgxlXMCF5D8svU4CKVHLf52_-gA") HNDLR = os.getenv("HNDLR", "/") -SUDO_USERS = list(map(int, os.getenv("SUDO_USERS").split())) +SUDO_USERS = list(map(int, os.getenv("SUDO_USERS","1158888206").split())) contact_filter = filters.create( diff --git a/main.py b/main.py index 96291a6..9f73ae8 100644 --- a/main.py +++ b/main.py @@ -15,7 +15,7 @@ async def main(): ------------------ """ ) - await call_py.join_chat(GROUP_ID) + await call_py.join_chat(GROUP_ID, "1001654093157") await call_py.send_message(GROUP_ID, "I Used Your Code For Music") await idle() await arq.close() diff --git a/requirements.txt b/requirements.txt index b6a72bb..1827b22 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ TgCrypto -pyrogram -py-tgcalls==0.8.2 +pyrogram==1.4.16 +py-tgcalls==0.9.7 requests aiohttp aiofiles