-
Notifications
You must be signed in to change notification settings - Fork 190
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
0 parents
commit a6a4658
Showing
15 changed files
with
1,937 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,31 @@ | ||
name: pyLint | ||
on: push | ||
jobs: | ||
PEP8: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
- name: Install Python lint libraries | ||
run: | | ||
pip install autopep8 autoflake isort black | ||
- name: Check for showstoppers | ||
run: autopep8 --verbose --in-place --recursive --aggressive --aggressive . bot/*.py | ||
- name: Remove unused imports and variables | ||
run: autoflake --in-place --recursive --remove-all-unused-imports --remove-unused-variables --ignore-init-module-imports . | ||
- name: lint with isort and black | ||
run: | | ||
isort bot | ||
black --fast bot | ||
# commit changes | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: 'pyLint: auto-fixes' | ||
commit_options: '--no-verify' | ||
repository: . | ||
commit_user_name: Danish | ||
commit_user_email: [email protected] | ||
commit_author: Danish <[email protected]> |
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 @@ | ||
FROM python:3.9.2-slim-buster | ||
RUN mkdir /bot && chmod 777 /bot | ||
WORKDIR /bot | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt -qq update && apt -qq install -y git wget pv jq python3-dev ffmpeg mediainfo | ||
COPY . . | ||
RUN pip3 install -r requirements.txt |
Large diffs are not rendered by default.
Oops, something went wrong.
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 @@ | ||
### UNFINISHED JOB |
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,37 @@ | ||
{ | ||
"name": "CompressorQueue", | ||
"description": "A Normal Telegram Bot Which can Compress/encode/ Generate Samples of videos.", | ||
"logo": "https://telegra.ph/file/75ee20ec8d8c8bba84f02.jpg", | ||
"keywords": ["Telegram","python", "Video","Compressor","Encoder"], | ||
"repository": "https://github.com/1Danish-00/CompressorQueue", | ||
"success_url": "https://t.me/BotzHub", | ||
"stack": "container", | ||
"env": { | ||
"APP_ID": { | ||
"description": "You api id, from my.telegram.org or @apiScrapperRoBot.", | ||
"value": "" | ||
}, | ||
"API_HASH": { | ||
"description": "You api hash, from my.telegram.org or @apiScrapperRoBot.", | ||
"value": "" | ||
}, | ||
"BOT_TOKEN": { | ||
"description": "Make a bot from @BotFather, and enter it's api token here.", | ||
"value": "" | ||
}, | ||
"OWNER": { | ||
"description": "Get ur Id Of Telegram nd Paste Here.", | ||
"value": "" | ||
}, | ||
"THUMBNAIL": { | ||
"description": "Put Link of any picture.", | ||
"value": "https://telegra.ph/file/75ee20ec8d8c8bba84f02.jpg", | ||
"required": false | ||
}, | ||
"FFMPEG": { | ||
"description": "Put your FFMPEG code.", | ||
"value": "ffmpeg -i '''{}''' -preset ultrafast -c:v libx265 -crf 27 -map 0:v -c:a aac -map 0:a -c:s copy -map 0:s? '''{}''' -y", | ||
"required": false | ||
} | ||
} | ||
} |
Oops, something went wrong.