Skip to content

Commit 0fe143f

Browse files
author
KingAbishnoi
committed
🌟
0 parents  commit 0fe143f

File tree

246 files changed

+42107
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

246 files changed

+42107
-0
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @Abishnoi

.github/FUNDING.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# These are supported funding model platforms
2+
3+
github: ['KingAbishnoi']
4+
community_bridge: ABG-project
5+
custom: ['https://t.me/Abishnoi_bots', 'https://t.me/AbishnoiMF', 'https://t.me/Abishnoi1M']

.github/README.md

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
━━━━━━━━━━━━━━━━━━━━
2+
**ᴋɪɴɢ ᴀʙɪsʜɴᴏɪ**
3+
4+
<img src="https://user-images.githubusercontent.com/73097560/115834477-dbab4500-a447-11eb-908a-139a6edaec5c.gif">
5+
<img src="https://user-images.githubusercontent.com/73097560/115834477-dbab4500-a447-11eb-908a-139a6edaec5c.gif">
6+
7+
8+
<h2 align="center">
9+
──「 ᴇxᴏɴ ʀᴏʙᴏᴛ 」──
10+
</h2>
11+
12+
13+
<h1 align="center"><b> 𝖤𝖷𝖮N 𝖱𝖮𝖡𝖮𝖳 ❗️</b></h1>
14+
15+
## 𝘊𝘢𝘵𝘤𝘩 𝘔𝘦 𝘐𝘯 [𝘛𝘎🏃‍♀️](https://t.me/AbishnoiMF)
16+
17+
## 𝖬𝗒 A𝗅𝗅 𝖡𝗈𝗍𝗌 [𝖡𝖮𝖳𝖲](https://t.me/Abishnoi_bots)
18+
19+
## ⚡ (ɢɪᴠᴇ sᴛᴀʀ)
20+
21+
_**ᴀᴠᴀɪʟᴀʙʟᴇ ᴏɴ ᴛᴇʟᴇɢʀᴀᴍ ᴀs [ᴇxᴏɴ ✘ ʀᴏʙᴏᴛ](https://t.me/AbishnoiMF)**_
22+
━━━━━━━━━━━━━━━━━━━━
23+
<h3 align="center">
24+
𝗚𝗥𝗢𝗨𝗣 𝗠𝗔𝗡𝗔𝗚𝗘𝗥
25+
</h3>
26+
27+
━━━━━━━━━━━━━━━━━━━━
28+
<img src="https://user-images.githubusercontent.com/73097560/115834477-dbab4500-a447-11eb-908a-139a6edaec5c.gif">
29+
<img src="https://user-images.githubusercontent.com/73097560/115834477-dbab4500-a447-11eb-908a-139a6edaec5c.gif">
30+
31+
<p align="center">
32+
<img src="https://telegra.ph/file/03264297589e442200052.jpg">
33+
</p>
34+
35+
<p align="center">
36+
<b>𝗗𝗘𝗣𝗟𝗢𝗬𝗠𝗘𝗡𝗧 𝗠𝗘𝗧𝗛𝗢𝗗𝗦</b>
37+
</p>
38+
39+
<h3 align="center">
40+
─「 ᴅᴇᴩʟᴏʏ ᴏɴ ʜᴇʀᴏᴋᴜ 」─
41+
</h3>
42+
43+
<p align="center"><a href="https://dashboard.heroku.com/new?template=https://github.com/TEAM-ABG/ExonRobot"> <img src="https://img.shields.io/badge/Deploy%20On%20Heroku-black?style=for-the-badge&logo=heroku" width="220" height="38.45"/></a></p>
44+
45+
<p align="center"><a href="https://heroku-deployer.herokuapp.com"> <img src="https://img.shields.io/badge/Redirect%20To%20Heroku-black?style=for-the-badge&logo=heroku" width="200" height="35.45"/></a></p>
46+
47+
48+
━━━━━━━━━━━━━━━━━━━━
49+
50+
<img src="https://user-images.githubusercontent.com/73097560/115834477-dbab4500-a447-11eb-908a-139a6edaec5c.gif">
51+
<img src="https://user-images.githubusercontent.com/73097560/115834477-dbab4500-a447-11eb-908a-139a6edaec5c.gif">
52+
53+
54+
<h3 align="center">
55+
─「 sᴜᴩᴩᴏʀᴛ 」─
56+
</h3>
57+
58+
<p align="center">
59+
<a href="https://telegram.me/AbishnoiMF"><img src="https://img.shields.io/badge/-Support%20Group-blue.svg?style=for-the-badge&logo=Telegram"></a>
60+
</p>
61+
<p align="center">
62+
<a href="https://telegram.me/Abishnoi1M"><img src="https://img.shields.io/badge/Abishnoi%20-blue.svg?style=for-the-badge&logo=Telegram"></a>
63+
</p>
64+
65+
━━━━━━━━━━━━━━━━━━━━
66+
<img src="https://user-images.githubusercontent.com/73097560/115834477-dbab4500-a447-11eb-908a-139a6edaec5c.gif">
67+
<img src="https://user-images.githubusercontent.com/73097560/115834477-dbab4500-a447-11eb-908a-139a6edaec5c.gif">
68+
69+
70+
<h3 align="center">
71+
─「 ᴄʀᴇᴅɪᴛs 」─
72+
</h3>
73+
: ➻
74+
75+
[𝐀𝖻𝗂𝗌𝗁𝗇𝗈𝗂] × <a href="https://github.com/KingAbishnoi" alt="KingAbishnoi"> <img src="https://img.shields.io/badge/KINGABISHNOI-90302f?logo=github" /></a>
76+
77+
[𝐈ɢɴɪᴛᴇᴛᴇᴄʜ𝐔ᴘᴅᴀᴛᴇs] × <a href="https://t.me/IgniteTechDivision" alt="Ignitetech"> <img src="https://img.shields.io/badge/HW-90302f?logo=github" /></a>
78+
79+
80+
━━━━━━━━━━━━━━━━━━━━

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: pip
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: "06:00"
8+
timezone: "Asia/Jakarta"
9+
labels:
10+
- "dependencies"
11+
open-pull-requests-limit: 20

.github/workflows/black.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Black
2+
3+
on: push
4+
5+
jobs:
6+
black:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-python@v2
11+
- name: Install black
12+
run: |
13+
python -m pip install --upgrade pip
14+
python -m pip install -U black
15+
- name: Run black
16+
run: black .
17+
- name: Create Pull Request
18+
uses: peter-evans/create-pull-request@v3
19+
with:
20+
commit-message: Automated code formatting
21+
title: Format code.
22+
body: Automated code formatting.
23+
labels: ⚫️ black
24+
branch: autofix
25+
committer: Abishnoi <Abishnoi@users.noreply.github.com>
26+
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
27+
signoff: true
28+
delete-branch: true

.github/workflows/pylint.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: PyLint
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
PEP8:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
11+
- name: Setup Python
12+
uses: actions/setup-python@v1
13+
with:
14+
python-version: 3.9
15+
- name: Install Python lint libraries
16+
run: |
17+
pip install autoflake isort black
18+
- name: Remove unused imports and variables
19+
run: |
20+
autoflake --in-place --recursive --remove-all-unused-imports --remove-unused-variables --ignore-init-module-imports .
21+
- name: lint with isort
22+
run: |
23+
isort .
24+
- name: lint with black
25+
run: |
26+
black .
27+
# commit changes
28+
- uses: stefanzweifel/git-auto-commit-action@v4
29+
with:
30+
commit_message: 'AsuXRobot'
31+
commit_options: '--no-verify'
32+
repository: .
33+
commit_user_name: KingAbishnoi
34+
commit_user_email: 72609355+KingAbishnoi@users.noreply.github.com
35+
commit_author: KingAbishnoi <72609355+KingAbishnoi+@users.noreply.github.com>

ABG/ABISHNOI COPYRIGHT ©

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
"""
2+
MIT License
3+
4+
Copyright (c) 2022 ABISHNOI
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.
23+
"""
24+
# ""DEAR PRO PEOPLE, DON'T REMOVE & CHANGE THIS LINE
25+
# TG :- @Abishnoi
26+
# MY ALL BOTS :- Abishnoi_bots
27+
# GITHUB :- KingAbishnoi ""

ABG/covert.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import cv2
2+
import ffmpeg
3+
4+
5+
def convert_gif(input):
6+
"""Function to convert mp4 to webm(vp9)"""
7+
8+
vid = cv2.VideoCapture(input)
9+
height = vid.get(cv2.CAP_PROP_FRAME_HEIGHT)
10+
width = vid.get(cv2.CAP_PROP_FRAME_WIDTH)
11+
12+
# check height and width to scale
13+
if width > height:
14+
width = 512
15+
height = -1
16+
elif height > width:
17+
height = 512
18+
width = -1
19+
elif width == height:
20+
width = 512
21+
height = 512
22+
23+
converted_name = "kangsticker.webm"
24+
25+
(
26+
ffmpeg.input(input)
27+
.filter("fps", fps=30, round="up")
28+
.filter("scale", width=width, height=height)
29+
.trim(start="00:00:00", end="00:00:03", duration="3")
30+
.output(
31+
converted_name,
32+
vcodec="libvpx-vp9",
33+
**{
34+
#'vf': 'scale=512:-1',
35+
"crf": "30"
36+
}
37+
)
38+
.overwrite_output()
39+
.run()
40+
)
41+
42+
return converted_name

ABG/helper.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
HELP_IMG = ["https://telegra.ph/file/2ad7c9d508b26c3cc7c09.jpg"]
2+
3+
START_IMG = ["https://telegra.ph/file/2ad7c9d508b26c3cc7c09.jpg"]
4+
5+
6+
PHOTO = ["https://telegra.ph/file/2ad7c9d508b26c3cc7c09.jpg"]

ABISHNOI COPYRIGHT ©

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
"""
2+
MIT License
3+
4+
Copyright (c) 2022 ABISHNOI
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.
23+
"""
24+
25+
# ""DEAR PRO PEOPLE, DON'T REMOVE & CHANGE THIS LINE
26+
# TG :- @Abishnoi
27+
# MY ALL BOTS :- Abishnoi_bots
28+
# GITHUB :- KingAbishnoi ""

0 commit comments

Comments
 (0)