-
Notifications
You must be signed in to change notification settings - Fork 664
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Heroku files removed. ! some minor code fixes.
- Loading branch information
Showing
14 changed files
with
83 additions
and
145 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 |
---|---|---|
@@ -1,88 +1,97 @@ | ||
<h1 align="left"> | ||
<a target="_blank"> | ||
Clonebot | ||
<img src="http://www.randomnoun.com/wpf/shell32-avi/tshell32_160.gif" width="272" height="60"> | ||
</a> | ||
</h1> | ||
|
||
#### An <a href="https://choosealicense.com/licenses/gpl-3.0/" target="_blank"> opensource </a> Telegram robot can clone media & text from any chat to your own chat.<br> | ||
Read the <a href="https://space4renjith.blogspot.com/2022/05/clonebot-technical-documentation.html" target="_blank"> documentation </a>to know how to use the bot | ||
# Clonebot | ||
|
||
[![Clonebot Logo](http://www.randomnoun.com/wpf/shell32-avi/tshell32_160.gif)](#) | ||
|
||
#### An [opensource](https://choosealicense.com/licenses/gpl-3.0/) Telegram robot can clone media & text from any chat to your own chat. | ||
Read the [documentation](https://space4renjith.blogspot.com/2022/05/clonebot-technical-documentation.html) to know how to use the bot | ||
|
||
--- | ||
|
||
**DUE TO SOME SECURITY REASONS, DEPLOY TO HEROKU FROM THIS REPOSITORY HAS BEEN ABOLISHED!** | ||
<br> | ||
<p align="left"> | ||
<br> | ||
<b>DUE TO SOME SECURITY REASONS, DEPLOY TO HEROKU FROM THIS REPOSITORY HAS BEEN ABOLISHED !</b> | ||
<br> | ||
<u>This repository is no longer supporting Heroku deployment. Use a paid VPS / Raspberry Pi / Local pc instead. See the documentation for more.</u> | ||
<br><br> | ||
<a href="https://t.me/rmprojects" target="_blank">@M4Mallu</a> | ||
</p> | ||
*This repository is no longer supporting Heroku deployment. Use a paid VPS / Raspberry Pi / Local PC instead. See the documentation for more.* | ||
|
||
[@M4Mallu](https://t.me/rmprojects) | ||
|
||
<details> | ||
<summary><b>Deploy Using Docker</b></summary> | ||
1. Deploying on VPS Using Docker | ||
|
||
- Start Docker daemon (skip if already running), if installed by snap then use 2nd command: | ||
1. **Deploying on VPS Using Docker** | ||
|
||
- Start Docker daemon (skip if already running), if installed by snap then use 2nd command: | ||
|
||
```bash | ||
sudo dockerd | ||
sudo snap start docker | ||
``` | ||
|
||
Note: If not started or not starting, run the command below then try to start. | ||
Note: If not started or not starting, run the command below then try to start. | ||
|
||
```bash | ||
sudo apt install docker.io | ||
``` | ||
|
||
- Build Docker image: | ||
- Build Docker image: | ||
|
||
```bash | ||
sudo docker build . -t clone-bot | ||
``` | ||
|
||
- Run the image: | ||
- Run the image: | ||
|
||
```bash | ||
sudo docker run clone-bot | ||
``` | ||
|
||
- To stop the image: | ||
- To stop the image: | ||
|
||
```bash | ||
sudo docker ps | ||
sudo docker stop id | ||
``` | ||
|
||
- To clear the container: | ||
- To clear the container: | ||
|
||
```bash | ||
sudo docker container prune | ||
``` | ||
|
||
- To delete the images: | ||
- To delete the images: | ||
|
||
```bash | ||
sudo docker image prune -a | ||
``` | ||
|
||
2. Deploying on VPS Using docker-compose | ||
|
||
**NOTE**: If you want to use port other than 80, change it in docker-compose.yml | ||
|
||
``` | ||
sudo apt install docker-compose | ||
``` | ||
- Build and run Docker image: | ||
``` | ||
sudo docker-compose up | ||
``` | ||
- After editing files with nano for example (nano start.sh): | ||
``` | ||
sudo docker-compose up --build | ||
``` | ||
- To stop the image: | ||
``` | ||
sudo docker-compose stop | ||
``` | ||
- To run the image: | ||
``` | ||
sudo docker-compose start | ||
``` | ||
2. **Deploying on VPS Using docker-compose** | ||
|
||
</details> | ||
**NOTE**: If you want to use a port other than 80, change it in docker-compose.yml | ||
|
||
```bash | ||
sudo apt install docker-compose | ||
``` | ||
|
||
- Build and run Docker image: | ||
|
||
```bash | ||
sudo docker-compose up | ||
``` | ||
|
||
- After editing files with nano for example (nano start.sh): | ||
|
||
```bash | ||
sudo docker-compose up --build | ||
``` | ||
|
||
- To stop the image: | ||
|
||
```bash | ||
sudo docker-compose stop | ||
``` | ||
|
||
- To run the image: | ||
|
||
```bash | ||
sudo docker-compose start | ||
``` | ||
|
||
</details> |
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
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,9 +1,13 @@ | ||
echo | ||
echo | ||
echo "Credits: m4mallu> https://github.com/m4mallu" | ||
echo | ||
sleep 1 | ||
clear >$(tty) | ||
virtualenv -p python3 venv > /dev/null | ||
. ./venv/bin/activate > /dev/null | ||
echo "Installing requirements, please wait..." | ||
pip3 install -r requirements.txt > /dev/null | ||
echo "Done! Starting the bot..." | ||
echo | ||
sleep 1 | ||
clear >$(tty) | ||
echo "Starting the bot, please wait..." | ||
sleep 1 | ||
clear >$(tty) | ||
python3 main.py |
This file was deleted.
Oops, something went wrong.
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
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