Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kotakbiasa/unzip-bot
https://github.com/kotakbiasa/unzip-bot
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kotakbiasa/unzip-bot
- Owner: kotakbiasa
- License: mit
- Created: 2023-11-09T06:53:11.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-08-19T23:48:11.000Z (5 months ago)
- Last Synced: 2024-08-20T03:53:09.623Z (5 months ago)
- Language: Python
- Size: 1.25 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Unarchiver Bot## A Telegram bot to extract various types of archives
![Unzip logo](https://telegra.ph/file/d4ba24682e030fc58613f.jpg)
[![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](https://t.me/unzip_edm115bot)
## Features ๐- Extract all format of archives like `rar`, `zip`, `tar`, `7z`, `tar.xz`, โฆ
- Supports password protected archives
- Extract archives from direct links
- Broadcast messages to users
- Ban / Unban users from using your bot
- Send logs in a private channel/group
- Can run only one extract per user at a time
- Fast to answer and process tasks
- Thumbnail can be set
- Problems can be directly reported
- Can send a message to a specific user
- Get infos about users
- Can rename files
- Able to process splitted archives (`.001`)
- And some other features ๐ฅ Dive into the code to find them ๐คญ
## Config vars ๐- `APP_ID` - Your APP ID. Get it from [my.telegram.org](my.telegram.org)
- `API_HASH` - Your API_HASH. Get it from [my.telegram.org](my.telegram.org)
- `BOT_OWNER` - Your Telegram Account ID. Get it from [@MissRose_bot](https://t.me/MissRose_bot) (Start the bot and send /info command).
- `BOT_TOKEN` - Bot Token of Your Telegram Bot. Get it from [@BotFather](https://t.me/BotFather)
- `MONGODB_URL` - Your MongoDB URL ([**tutorial here**](./CreateMongoDB.md))
- `LOGS_CHANNEL` - Make a private channel and get its ID (search on Google if you don't know how to do). Using a group works as well, just add [`Rose`](https://t.me/MissRose_bot?startgroup=startbot), then send `/id` (In both cases, **make sure to add your bot to the channel/group as an admin !**)## 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](http://p7zip.sourceforge.net/) package with some additional features---
#### The lazy way
[![Deploy me ๐ฅบ](https://www.herokucdn.com/deploy/button.svg)](https://www.heroku.com/deploy?template=https://github.com/kotakbiasa/unzip-bot)
(if you're in a fork, make sure to replace the template URL with your repoโs one)---
#### The easy way
+ Install [Docker](https://www.docker.com/) then restart your computer
```bash
git clone -b master https://github.com/EDM115/unzip-bot.git
cd unzip-bot
docker build -t unzip-bot .
```
+ Open Docker Desktop, go on the Images tab, click on the Run button
+ On Optional settings, fill the env variables---
#### The legacy way
```bash
git clone -b master https://github.com/EDM115/unzip-bot.git
cd unzip-bot
pip3 install -r requirements.txt
```
+ Arch linux only โ
`sudo pacman -S p7zip`##### Edit config.py with your own values
```bash
start.sh
```---
**DONE ๐ฅณ enjoy the bot !** Be sure to follow me on [Github](https://github.com/EDM115) and Star ๐ this repo to show some support ๐ฅบ
## How to Build after changes ?#### Trust GitHub Actions
+ Add new Actions secrets to the repo :
+ `DOCKER_USERNAME` : all in lowercase
+ `DOCKER_TOKEN` : one with all rights, here : https://hub.docker.com/settings/security
+ Go in Actions tab, 2 workflows are here for ya :
+ `Build Docker Image` : Check if it builds without errors
+ `Publish Docker Image` : Rebuild && publish#### Do it manually
+ Go in the repo's folder
```bash
docker build -t unzip-bot .
```
+ If you wanna publish :
```bash
docker tag 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)*
```bash
docker login
```
*login and don't mind the errors*
```bash
docker push edm115/unzip-bot:latest
```
*(same, replace accordingly)*
## Found a bug ๐If you found a bug in this bot please open an [issue](https://github.com/EDM115/unzip-bot/issues) or report it on Telegram : [@EDM115](https://t.me/EDM115)
Same if you have any feature request ๐
## License & Copyright ๐ฎโโ๏ธ```
Copyright (c) 2022 - 2023 EDM115This 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](https://github.com/Itz-fork/Unzipper-Bot)