init, .gitignore
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
git
|
||||
wget
|
||||
ffmpeg
|
||||
mediainfo
|
||||
yt-dlp
|
||||
@@ -0,0 +1,10 @@
|
||||
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 python -m venv --copies /opt/venv
|
||||
ENV PATH="/opt/venv/bin:$PATH"
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
CMD ["bash", "cloud.sh"]
|
||||
@@ -0,0 +1 @@
|
||||
web: bash cloud.sh
|
||||
@@ -0,0 +1,88 @@
|
||||
{
|
||||
"name": "Moon-userbot",
|
||||
"description": "A Simple, Fast, Customizable, Ai powered Userbot for Telegram with most easiest installation.",
|
||||
"logo": "https://camo.githubusercontent.com/1efdfa6416b3cd08471d865ca9ebf0fbdd38602ea95425f18a9bec6aeeefe49b/68747470733a2f2f74656c656772612e70682f66696c652f3063333763326662306631393463633163303334342e6a7067",
|
||||
"keywords": [
|
||||
"telegram",
|
||||
"Moon-userbot",
|
||||
"bot",
|
||||
"python",
|
||||
"pyrogram"
|
||||
],
|
||||
"env": {
|
||||
"API_ID": {
|
||||
"description": "Get it from my.telegram.org",
|
||||
"required": true
|
||||
},
|
||||
"API_HASH": {
|
||||
"description": "Get it from my.telegram.org",
|
||||
"required": true
|
||||
},
|
||||
"PM_LIMIT": {
|
||||
"description": "set your pm permit warn limit, default is 4",
|
||||
"value": "4",
|
||||
"required": true
|
||||
},
|
||||
"SECOND_SESSION": {
|
||||
"description": "Pyrorogram v2 session string for music bot, only fill this if you want to use music bot feature",
|
||||
"required": false
|
||||
},
|
||||
"DATABASE_URL": {
|
||||
"description": "ONLY for MongoDB, get it from https://cloud.mongodb.com",
|
||||
"required": false
|
||||
},
|
||||
"DATABASE_NAME": {
|
||||
"description": "set database name, if using sqlite then change it to `db.sqlite3`",
|
||||
"value": "moonub",
|
||||
"required": true
|
||||
},
|
||||
"DATABASE_TYPE": {
|
||||
"description": "set to sqlite3 if want to use sqlite3 db",
|
||||
"value": "mongodb",
|
||||
"required": true
|
||||
},
|
||||
"STRINGSESSION": {
|
||||
"description": "Pyrogram V2 Session String. Don't use bots or else you'll be responsible for your actions. Gen yourself https://github.com/The-MoonTg-project/Moon-Userbot?tab=readme-ov-file#-optional-vars.",
|
||||
"required": true
|
||||
},
|
||||
"APIFLASH_KEY": {
|
||||
"description": "ONLY, If you want to use web screenshot plugin You can get it from https://apiflash.com/dashboard/access_keys",
|
||||
"value": "123456779:ABCDE",
|
||||
"required": true
|
||||
},
|
||||
"RMBG_KEY": {
|
||||
"description": "ONLY, If you want to use removbg plugin You can get it from https://www.remove.bg/dashboard#api-key",
|
||||
"value": "123456779:ABCDE",
|
||||
"required": true
|
||||
},
|
||||
"VT_KEY": {
|
||||
"description": "ONLY, If you want to use VirusTotal plugin You can get it from https://www.virustotal.com/gui/",
|
||||
"value": "123456779:ABCDE",
|
||||
"required": true
|
||||
},
|
||||
"GEMINI_KEY": {
|
||||
"description": "ONLY, If you want to use gemini ai plugin You can get it from https://makersuite.google.com/app/apikey",
|
||||
"value": "123456779:ABCDE",
|
||||
"required": true
|
||||
},
|
||||
"COHERE_KEY": {
|
||||
"description": "ONLY, If you want to use cohere ai plugin You can get it from https://dashboard.cohere.com/api-keys",
|
||||
"value": "123456779:ABCDE",
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
"buildpacks": [
|
||||
{
|
||||
"url": "heroku/python"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/heroku/heroku-buildpack-apt"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/heroku/heroku-buildpack-activestorage-preview"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/The-MoonTg-project/heroku-buildpack-yt-dlp"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
from flask import Flask
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
|
||||
@app.route("/")
|
||||
def hello_world():
|
||||
return "This is Moon"
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run()
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cat <<'EOF'
|
||||
_ ____ ____ _
|
||||
/ \__/|/ _ \/ _ \/ \ /|
|
||||
| |\/||| / \|| / \|| |\ ||
|
||||
| | ||| \_/|| \_/|| | \||
|
||||
\_/ \|\____/\____/\_/ \|
|
||||
|
||||
Copyright (C) 2020-2023 by MoonTg-project@Github, < https://github.com/The-MoonTg-project >.
|
||||
This file is part of < https://github.com/The-MoonTg-project/Moon-Userbot > project,
|
||||
and is released under the "GNU v3.0 License Agreement".
|
||||
Please see < https://github.com/The-MoonTg-project/Moon-Userbot/blob/main/LICENSE >
|
||||
All rights reserved.
|
||||
EOF
|
||||
|
||||
gunicorn app:app --daemon && python main.py
|
||||
@@ -0,0 +1,17 @@
|
||||
services:
|
||||
- type: worker
|
||||
name: Moon-Userbot
|
||||
runtime: docker
|
||||
repo: https://github.com/The-MoonTg-project/Moon-Userbot
|
||||
plan: starter
|
||||
envVars:
|
||||
- key: STABILITY_KEY
|
||||
sync: false
|
||||
- key: CLARIFAI_PAT
|
||||
sync: false
|
||||
- key: .env
|
||||
sync: false
|
||||
region: oregon
|
||||
dockerContext: .
|
||||
dockerfilePath: ./Dockerfile
|
||||
version: "1"
|
||||
@@ -0,0 +1 @@
|
||||
gunicorn app:app & python3 main.py
|
||||
Reference in New Issue
Block a user