EDM115 / unzip-bot

Telegram bot deployable to heroku that can extract every archive !
https://t.me/unzip_edm115bot
MIT License
98 stars 130 forks source link
archive bot free hacktoberfest heroku pyrogram python telegram telegram-bot unrar unzip
# Unarchiver Bot ## A Telegram bot to extract various types of archives Unzip logo [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![DeepSource](https://app.deepsource.com/gh/EDM115/unzip-bot.svg/?label=active+issues&show_trend=true&token=17SfwVx77dbrFlixtGdQsQNh)](https://app.deepsource.com/gh/EDM115/unzip-bot/?ref=repository-badge) [![Unzip-Bot Analytics](https://repobeats.axiom.co/api/embed/5c857b55b42dd8235388093858b74341f6c679ac.svg)](https://github.com/EDM115/unzip-bot/pulse)

Working bot 🥰

@unzip_edm115bot

Features 👀

Config vars 📖

Commands ✍️

Copy-paste those to BotFather when he asks you for them

commands - Get commands list
mode - Upload as Doc 📄 / Media 📺
addthumb - Add custom thumbnail
delthumb - Remove your thumbnail
stats - Know if bot is overused
clean - Cancel on-going process
help - In case you need 😭

Deploy 🚧

Deploying is easy 🥰 You can deploy this bot in Heroku or in a VPS ♥️
Star 🌟 Fork 🍴 and Deploy 📤

⚠️ Note : We are using arch linux. But why 🤔

Because arch's p7zip package is the only maintained version of the original p7zip package with some additional features


The lazy way

Deploy me 🥺
(if you're in a fork, make sure to replace the template URL with your repo's one)


The easy way

git clone https://github.com/EDM115/unzip-bot.git
cd unzip-bot
nano .env
docker build -t edm115/unzip-bot .

The legacy way

git clone https://github.com/EDM115/unzip-bot.git
cd unzip-bot
pip3 install -r requirements.txt
chmod +x start.sh && ./start.sh

DONE 🥳 enjoy the bot ! Be sure to follow me on Github and Star 🌟 this repo to show some support 🥺

How to Build after changes ?

Trust GitHub Actions

Do it manually

docker build --no-cache -t edm115/unzip-bot .
docker run -d -v downloaded-volume:/app/Downloaded -v thumbnails-volume:/app/Thumbnails --env-file ./.env --network host --name unzip-bot-container edm115/unzip-bot
docker start unzip-bot-container
# if you want to check something
docker exec -it unzip-bot-container sh
docker logs unzip-bot-container
# once you're done
docker stop unzip-bot-container
docker tag edm115/unzip-bot edm115/unzip-bot:latest

(replace edm115 with your docker hub username, unzip-bot with the repo's name and latest whith whatever you want)

docker login

login and don't mind the errors

docker push edm115/unzip-bot:latest

(same, replace accordingly)

Found a bug 🐞

If you found a bug in this bot please open an issue or report it on Telegram : @EDM115
Same if you have any feature request 😉

License & Copyright 👮‍♀️

Copyright (c) 2022 EDM115

This Unarchiver Bot repository is licensed under MIT License (https://github.com/EDM115/unzip-bot/blob/master/LICENSE)
Enjoy copying and modifying, but always mention me

• Inspired by Itz-fork/Nexa's work, but with additional features and bug fixes. This is a maintained repo of the original