Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ STRINGSESSION={@string_session}
# Set if you want to use music bot
SECOND_SESSION={@second_session}

# Music handler for music bot
MUSIC_HANDLER={@music_handler}

# PM LIMIT for AntiPM plugin
PM_LIMIT={@pm_limit}

Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/cloud-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Cloud Docker Image CI

on:
push:
branches:
- main
jobs:
push_to_registry:
name: Cloud Docker Image CI
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: ./
file: ./Cloudfile
push: true
tags: qbtaumai/moonubcloud:latest-cloud
1 change: 1 addition & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ jobs:
uses: docker/build-push-action@v4
with:
context: ./
file: ./Dockerfile
push: true
tags: qbtaumai/moonuserbot:latest
8 changes: 8 additions & 0 deletions Cloudfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM python:3.11
WORKDIR /app
COPY . /app
RUN apt-get -qq update && apt-get -qq install -y git wget ffmpeg mediainfo \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir -r requirements.txt
CMD ["bash", "cloud.sh"]
6 changes: 6 additions & 0 deletions DISCLAIMER.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## Disclaimer
> [!WARNING]
> The use of this Telegram Userbot is entirely at your own risk. The developer of this Userbot is not responsible for any misuse, damage, or legal consequences that may arise from your use of this software.
>> It is your responsibility to ensure that you use this Userbot in accordance with all applicable laws and regulations, and that you do not engage in any activities that may cause harm to others or violate their privacy. This includes, but is not limited to, the use of this Userbot to send spam, harass others, or engage in any other form of unlawful or malicious activity.
>> The developer of this Userbot does not endorse or condone any such activities, and any such use of this software is strictly prohibited. By using this Userbot, you acknowledge that you are solely responsible for your own actions and that the developer of this Userbot shall not be held liable for any damages or consequences that may arise from your use of this software.
>> It is your responsibility to ensure that you have obtained all necessary permissions and consents before using this Userbot to interact with others, and that you respect their privacy and rights. The developer of this Userbot shall not be held liable for any breach of privacy or rights that may occur as a result of your use of this software.
60 changes: 33 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
[![License](https://img.shields.io/badge/License-GPL-pink)](https://github.com/The-MoonTg-project/Moon-Userbot/blob/main/LICENSE)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://makeapullrequest.com)

</p>


***A Simple, Fast, Customizable, Ai powered Userbot for Telegram made after Dragon-Userbot abandoned***

Expand Down Expand Up @@ -79,6 +79,8 @@

- **YT Video [How to deploy on Koyeb]**: <https://youtu.be/2m_yB7EllYc>

**For Detailed Guide refer to [wiki](https://github.com/The-MoonTg-project/Moon-Userbot/wiki/Installation#koyeb-free)**

## 🐳 Docker

You can either use `docker run` or `docker compose`.
Expand All @@ -90,14 +92,20 @@ You can either use `docker run` or `docker compose`.
- Put your environment vars in `.env` file check [.env.dist](/.env.dist) for example format

### 👷‍♂️`docker run`:
We also push images to [Docker Hub](https://hub.docker.com/), so you can use the following commands to start and update the service:

- Start:
1. If you want to use normal image:
```shell
docker run --env-file ./.env -d qbtaumai/moonuserbot:latest
```
2. If you want to use image with flask web (only recommended for heroku/koyeb/render etc.):
```shell
docker run --env-file ./.env -d qbtaumai/moonubcloud:latest-cloud
```
- Updating:
```shell
docker stop $(docker ps -q) && docker rm $(docker ps -a -q)
docker stop $(docker ps -q)
```
then re-run the start command

Expand Down Expand Up @@ -129,38 +137,36 @@ If you're using Docker Compose version 2.x, use the following commands to start
> Make Sure you add appropriate env vars

## 🖥️ Local Host
## Linux, Windows [only wsl]

### Update the packages

```shell
sudo apt update && sudo apt upgrade -y
```
## 🐧 Linux (WSL compatible)

### Install Git

> [!TIP]
> Ignore if already installed

```shell
sudo apt install git
```
There are instructions for installing on several different Unix distributions on the Git website, at https://git-scm.com/download/linux

### Clone the repo

```shell
git clone https://github.com/The-MoonTg-project/Moon-Userbot.git
```

### Setup
### Installation

```shell
cd Moon-Userbot/ && sudo bash install.sh
cd Moon-Userbot
chmod +x install.sh
./install.sh
```

**Installer tested on:**
- Arch
- Debian
- Ubuntu
- WSL (APT based distros)

Feel free to test on other distros and let us know!

#### 📱 Termux
> [!TIP]
> use [GitHub](https://github.com/termux/termux-app/releases) version
> Use [GitHub](https://github.com/termux/termux-app/releases) version
-------------------------------------------------------------------------------

> **Full Installation instruction [Given here](https://telegra.ph/Moon-Userbot-Installation---Termux-02-09)**
Expand Down Expand Up @@ -198,15 +204,15 @@ Contributions of any type are welcome like `custom_modules` etc. Feel free to do
## Licence

```plaintext
                    GNU GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

                            Preamble
Preamble

  The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
```
4 changes: 3 additions & 1 deletion compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
services:
moonuserbot:
image: qbtaumai/moonuserbot:latest
build:
context: .
dockerfile: Dockerfile
container_name: moonuserbot
restart: unless-stopped
env_file:
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
version: "3"
services:
moonuserbot:
image: qbtaumai/moonuserbot:latest
build:
context: .
dockerfile: Dockerfile
container_name: moonuserbot
restart: unless-stopped
env_file:
Expand Down
Loading