Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
1Danish-00 committed Jul 10, 2021
0 parents commit a6a4658
Show file tree
Hide file tree
Showing 15 changed files with 1,937 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/pyLint.yml
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]>
7 changes: 7 additions & 0 deletions Dockerfile
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
674 changes: 674 additions & 0 deletions License

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
### UNFINISHED JOB
37 changes: 37 additions & 0 deletions app.json
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
}
}
}
Loading

0 comments on commit a6a4658

Please sign in to comment.