Skip to content

Commit

Permalink
add support deployed on vps and clean up startup
Browse files Browse the repository at this point in the history
  • Loading branch information
mrismanaziz committed Jan 24, 2022
1 parent 699ff18 commit 396aa16
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
worker: python3 main.py
worker: bash start
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ Saya Kira Ini Akan Bermanfaat Bagi Banyak Orang.. 😇.
git clone https://github.com/mrismanaziz/File-Sharing-Man
cd File-Sharing-Man
pip3 install -r requirements.txt
# <Create config.py appropriately>
python3 main.py
cp sample_config.env config.env
# edit config.env Anda dan isi VARS menggunakan nano config.env CTRL + S untuk menyimpan VARS Anda,
# gunakan CTRL + X untuk keluar dan kembali ke direktori File-Sharing-Man
bash start
````

### Admin Commands
Expand Down
3 changes: 3 additions & 0 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@

import logging
import os
from dotenv import load_dotenv
from logging.handlers import RotatingFileHandler

load_dotenv("config.env")

# Bot token dari @Botfather
TG_BOT_TOKEN = os.environ.get("TG_BOT_TOKEN", "")

Expand Down
9 changes: 5 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
feedparser
psycopg2-binary
pyrogram
TgCrypto
python-dotenv
Pyromod
sqlalchemy~=1.3.23
psycopg2-binary
feedparser
sqlalchemy==1.3.23
TgCrypto
2 changes: 1 addition & 1 deletion runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.9.9
python-3.9.10
36 changes: 36 additions & 0 deletions sample_config.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Masukan APP ID ambil di web my.telegram.org
APP_ID = "6"

# Masukan API HASH ambil di web my.telegram.org
API_HASH = "eb06d4abfb49dc3eeb1aeb98ae0f581e"

# Masukan BOT TOKEN dari @botfather
TG_BOT_TOKEN = "10010102:2abcdefghij"

# Masukan User ID untuk hak ADMINS bot
ADMINS = "1234567890"

# Masukan Username Telegram mu tanpa @
OWNER = "mrismanaziz"

# Masukan User id untuk hak owner
OWNER_ID = "1234567890"

# Masukan Username Channel mu tanpa @
CHANNEL = "Lunatic0de"

# Masukan Username Group mu tanpa @
GROUP = "SharingUserbot"

# Masukan Chat ID dari Group Untuk Wajib Subscribenya
FORCE_SUB_GROUP =

# Masukan Chat ID dari Channel Untuk Wajib Subscribenya
FORCE_SUB_CHANNEL =

# Masukan ID Channel Untuk [Channel Database]
CHANNEL_ID =

# URL Database Anda, Ambil dari https://elephantsql.com
# Contoh: "postgres://userbot:userbot@localhost:5432/userbot"
DATABASE_URL = ""
1 change: 1 addition & 0 deletions start
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python3 main.py

0 comments on commit 396aa16

Please sign in to comment.