-
Notifications
You must be signed in to change notification settings - Fork 22
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
Showing
9 changed files
with
91 additions
and
0 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,12 @@ | ||
local.env | ||
*.log | ||
.git/ | ||
.idea/ | ||
str.py | ||
Procfile | ||
README.md | ||
downloads/ | ||
raw_files/ | ||
.gitignore | ||
runtime.txt | ||
__pycache__/ |
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,8 @@ | ||
local.env | ||
*.log | ||
venv/ | ||
.idea/ | ||
*.session | ||
raw_files/ | ||
downloads/ | ||
__pycache__/ |
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,15 @@ | ||
--- | ||
application: | ||
name: "groupmusicbot" | ||
project: "ub" | ||
organization: "QoveryCommunity" | ||
databases: | ||
- type: "MONGODB" | ||
name: "ezila" | ||
version: "4.4" | ||
routers: | ||
- name: "main-groupmusicbot" | ||
routes: | ||
- application_name: "groupmusicbot" | ||
paths: | ||
- "/*" |
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,8 @@ | ||
FROM debian:latest | ||
RUN apt update && apt upgrade -y | ||
RUN apt install git curl python3-pip ffmpeg -y | ||
RUN pip3 install -U pip | ||
COPY . /app | ||
WORKDIR /app | ||
RUN pip3 install -U -r requirements.txt | ||
CMD python3 -m StreamMusic |
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 @@ | ||
worker: python3 -m StreamMusic |
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,11 @@ | ||
SESSION_NAME=session # If you don't deploy with docker, keep it as is and if you do so it should be a session string generated by "python str.py" | ||
BOT_TOKEN=123456:abcdefghijklmnopqrstuv | ||
BOT_NAME=HELLBOT | ||
API_ID=123456 | ||
API_HASH=abcdefghijklmnopqrstuv | ||
SUDO_USERS=1111 2222 # List of user IDs separated by space | ||
DURATION_LIMIT=10 # in minutes (default: 7) | ||
ARQ_API_KEY= | ||
UPDATES_CHANNEL= | ||
BG_IMAGE= | ||
|
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,18 @@ | ||
Pyrogram | ||
TgCrypto | ||
pytgcalls | ||
python-dotenv | ||
youtube_dl | ||
youtube_search_python | ||
requests | ||
aiohttp | ||
aiofiles | ||
asyncio | ||
youtube_search | ||
search_engine_parser | ||
ffmpeg | ||
Pillow | ||
python-arq | ||
future | ||
psutil | ||
wget |
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 @@ | ||
python-3.9.5 |
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,17 @@ | ||
import asyncio | ||
|
||
from pyrogram import Client | ||
|
||
print("Enter your app information from my.telegram.org/apps below.") | ||
|
||
|
||
async def main(): | ||
async with Client( | ||
":memory:", api_id=int(input("API ID:")), api_hash=input("API HASH:") | ||
) as app: | ||
print(await app.export_session_string()) | ||
|
||
|
||
if __name__ == "__main__": | ||
loop = asyncio.get_event_loop() | ||
loop.run_until_complete(main()) |