Skip to content

Commit 1cd837b

Browse files
authored
Merge pull request #5 from ShivshankarOfficial/main
latest version of python has been updated. & Fixed & Better...
2 parents f572d29 + 16a9298 commit 1cd837b

8 files changed

Lines changed: 41 additions & 21 deletions

File tree

Dockerfile

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1-
FROM python:3.10
1+
# Use the official Python image
2+
FROM python:3.9-slim-buster
3+
4+
# Set the working directory in the container
25
WORKDIR /app
3-
COPY . /app/
4-
RUN pip install -r requirements.txt
6+
7+
# Copy the dependencies file to the working directory
8+
COPY requirements.txt .
9+
10+
# Install any needed dependencies specified in requirements.txt
11+
RUN pip install --no-cache-dir -r requirements.txt
12+
13+
# Copy the rest of the application code to the working directory
14+
COPY . .
15+
16+
# Command to run the application
517
CMD ["python", "bot.py"]

Procfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
web: python bot.py
2-
worker: python bot.py
1+
web: python3 bot.py
2+
worker: python3 bot.py

app.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@
4848
"buildpacks": [
4949
{
5050
"url": "heroku/python"
51+
},
52+
{
53+
"url": "https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest"
5154
}
5255
]
5356
}

config.py

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
id_pattern = re.compile(r'^.\d+$')
1010

1111
class Config(object):
12-
# pyro client config
12+
# digital_botz client config
1313
API_ID = os.environ.get("API_ID", "")
1414
API_HASH = os.environ.get("API_HASH", "")
1515
BOT_TOKEN = os.environ.get("BOT_TOKEN", "")
@@ -24,9 +24,14 @@ class Config(object):
2424
# other configs
2525
RKN_PIC = os.environ.get("RKN_PIC", "https://telegra.ph/file/b746aadfe59959eb76f59.jpg")
2626
ADMIN = [int(admin) if id_pattern.search(admin) else admin for admin in os.environ.get('ADMIN', '6705898491').split()]
27-
FORCE_SUB = os.environ.get("FORCE_SUB", "Digital_Botz")
2827
LOG_CHANNEL = int(os.environ.get("LOG_CHANNEL", "-1002123429361"))
2928

29+
#force subs
30+
try:
31+
FORCE_SUB = int(os.environ.get("FORCE_SUB", ""))
32+
except:
33+
FORCE_SUB = os.environ.get("FORCE_SUB", "Digital_Botz")
34+
3035
# wes response configuration
3136
PORT = int(os.environ.get("PORT", "8080"))
3237
BOT_UPTIME = time.time()
@@ -61,12 +66,12 @@ class rkn(object):
6166
"""
6267

6368
UPGRADE= """
64-
•⪼ ★𝘗𝘭𝘢𝘯𝘴 - ⏳𝘋𝘢𝘵𝘦 - 💸𝘗𝘳𝘪𝘤𝘦
65-
•⪼ 🥉𝘉𝘳𝘰𝘯𝘻𝘦 - 3𝘥𝘢𝘺𝘴 - 39
66-
•⪼ 🥈𝘚𝘪𝘭𝘷𝘦𝘳 - 7𝘥𝘢𝘺𝘴 - 59
67-
•⪼ 🥇𝘎𝘰𝘭𝘥 - 15𝘥𝘢𝘺𝘴 - 99
68-
•⪼ 🏆𝘗𝘭𝘢𝘵𝘪𝘯𝘶𝘮 - 1𝘮𝘰𝘯𝘵𝘩 - 179
69-
•⪼ 💎𝘋𝘪𝘢𝘮𝘰𝘯𝘥 - 2𝘮𝘰𝘯𝘵𝘩 - 339
69+
•⪼ ★𝘗𝘭𝘢𝘯𝘴 - ⏳𝘋𝘢𝘵𝘦 - 💸𝘗𝘳𝘪𝘤𝘦
70+
•⪼ 🥉𝘉𝘳𝘰𝘯𝘻𝘦 - 3𝘥𝘢𝘺𝘴 - 39
71+
•⪼ 🥈𝘚𝘪𝘭𝘷𝘦𝘳 - 7𝘥𝘢𝘺𝘴 - 59
72+
•⪼ 🥇𝘎𝘰𝘭𝘥 - 15𝘥𝘢𝘺𝘴 - 99
73+
•⪼ 🏆𝘗𝘭𝘢𝘵𝘪𝘯𝘶𝘮 - 1𝘮𝘰𝘯𝘵𝘩 - 179
74+
•⪼ 💎𝘋𝘪𝘢𝘮𝘰𝘯𝘥 - 2𝘮𝘰𝘯𝘵𝘩 - 339
7075
7176
- 𝘋𝘢𝘪𝘭𝘺 𝘜𝘱𝘭𝘰𝘢𝘥 𝘓𝘪𝘮𝘪𝘵 𝘜𝘯𝘭𝘪𝘮𝘪𝘵𝘦𝘥
7277
- 𝘋𝘪𝘴𝘤𝘰𝘶𝘯𝘵 𝘈𝘭𝘭 𝘗𝘭𝘢𝘯 𝘙𝘴.9

plugins/file_rename.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ async def doc(bot, update):
109109
file_path = f"downloads/{new_filename}"
110110
file = update.message.reply_to_message
111111

112-
ms = await update.message.edit("`ᴛʀʏ ᴛᴏ ᴅᴏᴡɴʟᴏᴀᴅ....`")
112+
ms = await update.message.edit("`Tʀʏ Tᴏ Dᴏᴡɴʟᴏᴀᴅ....`")
113113
try:
114114
path = await bot.download_media(message=file, file_name=file_path, progress=progress_for_pyrogram, progress_args=("ᴅᴏᴡɴʟᴏᴀᴅ sᴛᴀʀᴛᴇᴅ....", ms, time.time()))
115115
except Exception as e:
@@ -132,7 +132,7 @@ async def doc(bot, update):
132132
pass
133133
await ms.edit("**Metadata added to the file successfully ✅**\n\n**Tʀyɪɴɢ Tᴏ Uᴩʟᴏᴀᴅɪɴɢ....**")
134134
else:
135-
await ms.edit("`ᴛʀʏɪɴɢ ᴛᴏ ᴜᴩʟᴏᴀᴅɪɴɢ....`")
135+
await ms.edit("`Tʀʏɪɴɢ Tᴏ Uᴩʟᴏᴀᴅɪɴɢ....`")
136136

137137
duration = 0
138138
try:

render.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
services:
22
- type: web
33
plan: free
4-
name: RknFileRenameBot
4+
name: Digital-Rename-Bot
55
env: python
66
buildCommand: pip install -r requirements.txt
7-
startCommand: python bot.py
8-
repo: https://github.com/RknDeveloper/Rkn-Powerful-Rename-Bot.git
7+
startCommand: python3 bot.py
8+
repo: https://github.com/DigitalBotz/Digital-Rename-Bot.git
99
branch: main
1010
autoDeploy: false
1111
envVars:
@@ -27,5 +27,5 @@ services:
2727
sync: false
2828
- key: ADMIN
2929
sync: false
30-
- key: WEBHOOK
30+
- key: STRING_SESSION
3131
sync: false

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pyrogram==2.0.93
2-
TgCrypto==1.2.5
2+
TgCrypto
33
motor
44
dnspython
55
hachoir

runtime.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
python-3.10.8
1+
python-3.12.4

0 commit comments

Comments
 (0)