-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
KingAbishnoi
committed
Aug 29, 2022
0 parents
commit 0fe143f
Showing
246 changed files
with
42,107 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 @@ | ||
* @Abishnoi |
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,5 @@ | ||
# These are supported funding model platforms | ||
|
||
github: ['KingAbishnoi'] | ||
community_bridge: ABG-project | ||
custom: ['https://t.me/Abishnoi_bots', 'https://t.me/AbishnoiMF', 'https://t.me/Abishnoi1M'] |
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,80 @@ | ||
━━━━━━━━━━━━━━━━━━━━ | ||
**ᴋɪɴɢ ᴀʙɪsʜɴᴏɪ** | ||
|
||
<img src="https://user-images.githubusercontent.com/73097560/115834477-dbab4500-a447-11eb-908a-139a6edaec5c.gif"> | ||
<img src="https://user-images.githubusercontent.com/73097560/115834477-dbab4500-a447-11eb-908a-139a6edaec5c.gif"> | ||
|
||
|
||
<h2 align="center"> | ||
──「 ᴇxᴏɴ ʀᴏʙᴏᴛ 」── | ||
</h2> | ||
|
||
|
||
<h1 align="center"><b> 𝖤𝖷𝖮N 𝖱𝖮𝖡𝖮𝖳 ❗️</b></h1> | ||
|
||
## 𝘊𝘢𝘵𝘤𝘩 𝘔𝘦 𝘐𝘯 [𝘛𝘎🏃♀️](https://t.me/AbishnoiMF) | ||
|
||
## 𝖬𝗒 A𝗅𝗅 𝖡𝗈𝗍𝗌 [𝖡𝖮𝖳𝖲](https://t.me/Abishnoi_bots) | ||
|
||
## ⚡ (ɢɪᴠᴇ sᴛᴀʀ) | ||
|
||
_**ᴀᴠᴀɪʟᴀʙʟᴇ ᴏɴ ᴛᴇʟᴇɢʀᴀᴍ ᴀs [ᴇxᴏɴ ✘ ʀᴏʙᴏᴛ](https://t.me/AbishnoiMF)**_ | ||
━━━━━━━━━━━━━━━━━━━━ | ||
<h3 align="center"> | ||
𝗚𝗥𝗢𝗨𝗣 𝗠𝗔𝗡𝗔𝗚𝗘𝗥 | ||
</h3> | ||
|
||
━━━━━━━━━━━━━━━━━━━━ | ||
<img src="https://user-images.githubusercontent.com/73097560/115834477-dbab4500-a447-11eb-908a-139a6edaec5c.gif"> | ||
<img src="https://user-images.githubusercontent.com/73097560/115834477-dbab4500-a447-11eb-908a-139a6edaec5c.gif"> | ||
|
||
<p align="center"> | ||
<img src="https://telegra.ph/file/03264297589e442200052.jpg"> | ||
</p> | ||
|
||
<p align="center"> | ||
<b>𝗗𝗘𝗣𝗟𝗢𝗬𝗠𝗘𝗡𝗧 𝗠𝗘𝗧𝗛𝗢𝗗𝗦</b> | ||
</p> | ||
|
||
<h3 align="center"> | ||
─「 ᴅᴇᴩʟᴏʏ ᴏɴ ʜᴇʀᴏᴋᴜ 」─ | ||
</h3> | ||
|
||
<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> | ||
|
||
<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> | ||
|
||
|
||
━━━━━━━━━━━━━━━━━━━━ | ||
|
||
<img src="https://user-images.githubusercontent.com/73097560/115834477-dbab4500-a447-11eb-908a-139a6edaec5c.gif"> | ||
<img src="https://user-images.githubusercontent.com/73097560/115834477-dbab4500-a447-11eb-908a-139a6edaec5c.gif"> | ||
|
||
|
||
<h3 align="center"> | ||
─「 sᴜᴩᴩᴏʀᴛ 」─ | ||
</h3> | ||
|
||
<p align="center"> | ||
<a href="https://telegram.me/AbishnoiMF"><img src="https://img.shields.io/badge/-Support%20Group-blue.svg?style=for-the-badge&logo=Telegram"></a> | ||
</p> | ||
<p align="center"> | ||
<a href="https://telegram.me/Abishnoi1M"><img src="https://img.shields.io/badge/Abishnoi%20-blue.svg?style=for-the-badge&logo=Telegram"></a> | ||
</p> | ||
|
||
━━━━━━━━━━━━━━━━━━━━ | ||
<img src="https://user-images.githubusercontent.com/73097560/115834477-dbab4500-a447-11eb-908a-139a6edaec5c.gif"> | ||
<img src="https://user-images.githubusercontent.com/73097560/115834477-dbab4500-a447-11eb-908a-139a6edaec5c.gif"> | ||
|
||
|
||
<h3 align="center"> | ||
─「 ᴄʀᴇᴅɪᴛs 」─ | ||
</h3> | ||
: ➻ | ||
|
||
➥ [𝐀𝖻𝗂𝗌𝗁𝗇𝗈𝗂] × <a href="https://github.com/KingAbishnoi" alt="KingAbishnoi"> <img src="https://img.shields.io/badge/KINGABISHNOI-90302f?logo=github" /></a> | ||
|
||
➥ [𝐈ɢɴɪᴛᴇᴛᴇᴄʜ𝐔ᴘᴅᴀᴛᴇs] × <a href="https://t.me/IgniteTechDivision" alt="Ignitetech"> <img src="https://img.shields.io/badge/HW-90302f?logo=github" /></a> | ||
|
||
|
||
━━━━━━━━━━━━━━━━━━━━ |
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 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: pip | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "06:00" | ||
timezone: "Asia/Jakarta" | ||
labels: | ||
- "dependencies" | ||
open-pull-requests-limit: 20 |
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,28 @@ | ||
name: Black | ||
|
||
on: push | ||
|
||
jobs: | ||
black: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- name: Install black | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -U black | ||
- name: Run black | ||
run: black . | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
commit-message: Automated code formatting | ||
title: Format code. | ||
body: Automated code formatting. | ||
labels: ⚫️ black | ||
branch: autofix | ||
committer: Abishnoi <Abishnoi@users.noreply.github.com> | ||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
signoff: true | ||
delete-branch: true |
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,35 @@ | ||
name: PyLint | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
PEP8: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.9 | ||
- name: Install Python lint libraries | ||
run: | | ||
pip install autoflake isort black | ||
- 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 | ||
run: | | ||
isort . | ||
- name: lint with black | ||
run: | | ||
black . | ||
# commit changes | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: 'AsuXRobot' | ||
commit_options: '--no-verify' | ||
repository: . | ||
commit_user_name: KingAbishnoi | ||
commit_user_email: 72609355+KingAbishnoi@users.noreply.github.com | ||
commit_author: KingAbishnoi <72609355+KingAbishnoi+@users.noreply.github.com> |
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,27 @@ | ||
""" | ||
MIT License | ||
|
||
Copyright (c) 2022 ABISHNOI | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
""" | ||
# ""DEAR PRO PEOPLE, DON'T REMOVE & CHANGE THIS LINE | ||
# TG :- @Abishnoi | ||
# MY ALL BOTS :- Abishnoi_bots | ||
# GITHUB :- KingAbishnoi "" |
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,42 @@ | ||
import cv2 | ||
import ffmpeg | ||
|
||
|
||
def convert_gif(input): | ||
"""Function to convert mp4 to webm(vp9)""" | ||
|
||
vid = cv2.VideoCapture(input) | ||
height = vid.get(cv2.CAP_PROP_FRAME_HEIGHT) | ||
width = vid.get(cv2.CAP_PROP_FRAME_WIDTH) | ||
|
||
# check height and width to scale | ||
if width > height: | ||
width = 512 | ||
height = -1 | ||
elif height > width: | ||
height = 512 | ||
width = -1 | ||
elif width == height: | ||
width = 512 | ||
height = 512 | ||
|
||
converted_name = "kangsticker.webm" | ||
|
||
( | ||
ffmpeg.input(input) | ||
.filter("fps", fps=30, round="up") | ||
.filter("scale", width=width, height=height) | ||
.trim(start="00:00:00", end="00:00:03", duration="3") | ||
.output( | ||
converted_name, | ||
vcodec="libvpx-vp9", | ||
**{ | ||
#'vf': 'scale=512:-1', | ||
"crf": "30" | ||
} | ||
) | ||
.overwrite_output() | ||
.run() | ||
) | ||
|
||
return converted_name |
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,6 @@ | ||
HELP_IMG = ["https://telegra.ph/file/2ad7c9d508b26c3cc7c09.jpg"] | ||
|
||
START_IMG = ["https://telegra.ph/file/2ad7c9d508b26c3cc7c09.jpg"] | ||
|
||
|
||
PHOTO = ["https://telegra.ph/file/2ad7c9d508b26c3cc7c09.jpg"] |
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,28 @@ | ||
""" | ||
MIT License | ||
|
||
Copyright (c) 2022 ABISHNOI | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
""" | ||
|
||
# ""DEAR PRO PEOPLE, DON'T REMOVE & CHANGE THIS LINE | ||
# TG :- @Abishnoi | ||
# MY ALL BOTS :- Abishnoi_bots | ||
# GITHUB :- KingAbishnoi "" |
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,79 @@ | ||
# We're using Debian Slim Buster image | ||
FROM python:3.9.6-slim-buster | ||
|
||
ENV PIP_NO_CACHE_DIR 1 | ||
|
||
RUN sed -i.bak 's/us-west-2\.ec2\.//' /etc/apt/sources.list | ||
|
||
# Installing Required Packages | ||
RUN apt update && apt upgrade -y && \ | ||
apt install --no-install-recommends -y \ | ||
debian-keyring \ | ||
debian-archive-keyring \ | ||
bash \ | ||
bzip2 \ | ||
curl \ | ||
figlet \ | ||
git \ | ||
util-linux \ | ||
libffi-dev \ | ||
libjpeg-dev \ | ||
libjpeg62-turbo-dev \ | ||
libwebp-dev \ | ||
linux-headers-amd64 \ | ||
musl-dev \ | ||
musl \ | ||
neofetch \ | ||
php-pgsql \ | ||
python3-lxml \ | ||
postgresql \ | ||
postgresql-client \ | ||
python3-psycopg2 \ | ||
libpq-dev \ | ||
libcurl4-openssl-dev \ | ||
libxml2-dev \ | ||
libxslt1-dev \ | ||
python3-pip \ | ||
python3-requests \ | ||
python3-sqlalchemy \ | ||
python3-tz \ | ||
python3-aiohttp \ | ||
openssl \ | ||
pv \ | ||
jq \ | ||
wget \ | ||
python3 \ | ||
python3-dev \ | ||
libreadline-dev \ | ||
libyaml-dev \ | ||
gcc \ | ||
sqlite3 \ | ||
libsqlite3-dev \ | ||
sudo \ | ||
zlib1g \ | ||
ffmpeg \ | ||
libssl-dev \ | ||
libgconf-2-4 \ | ||
libxi6 \ | ||
xvfb \ | ||
unzip \ | ||
libopus0 \ | ||
libopus-dev \ | ||
&& rm -rf /var/lib/apt/lists /var/cache/apt/archives /tmp | ||
|
||
# Pypi package Repo upgrade | ||
RUN apt-get install -y ffmpeg python3-pip curl | ||
RUN pip3 install --upgrade pip setuptools | ||
|
||
ENV PATH="/home/bot/bin:$PATH" | ||
|
||
# make directory | ||
RUN mkdir /Exon/ | ||
COPY . /Exon | ||
WORKDIR /Exon | ||
|
||
# Install requirements | ||
RUN pip3 install -U -r requirements.txt | ||
|
||
# Starting Worker | ||
CMD ["python3","-m","Exon"] |
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,27 @@ | ||
""" | ||
MIT License | ||
|
||
Copyright (c) 2022 ABISHNOI | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
""" | ||
# ""DEAR PRO PEOPLE, DON'T REMOVE & CHANGE THIS LINE | ||
# TG :- @Abishnoi1M | ||
# MY ALL BOTS :- Abishnoi_bots | ||
# GITHUB :- KingAbishnoi "" |
Oops, something went wrong.