Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Sadew451 authored Aug 14, 2021
1 parent 0e5601e commit 41817fe
Show file tree
Hide file tree
Showing 9 changed files with 91 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .dockerignore
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__/
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
local.env
*.log
venv/
.idea/
*.session
raw_files/
downloads/
__pycache__/
15 changes: 15 additions & 0 deletions .qovery.yml
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:
- "/*"
8 changes: 8 additions & 0 deletions Dockerfile
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
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
worker: python3 -m StreamMusic
11 changes: 11 additions & 0 deletions example.env
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=

18 changes: 18 additions & 0 deletions requirements.txt
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
1 change: 1 addition & 0 deletions runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-3.9.5
17 changes: 17 additions & 0 deletions str.py
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())

0 comments on commit 41817fe

Please sign in to comment.