From e2e6dde58958bdf1830579568a364abe3aed63bd Mon Sep 17 00:00:00 2001
From: subinps <64341611+subinps@users.noreply.github.com>
Date: Fri, 15 Oct 2021 00:55:06 +0530
Subject: [PATCH 1/7] help menu
---
config.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/config.py b/config.py
index 83f57135..3f7b1f74 100644
--- a/config.py
+++ b/config.py
@@ -324,10 +324,10 @@ class Config:
__You can pass number of seconds to be skipped. Example: /seek 10 to skip 10 sec. /seek -10 to rewind 10 sec.__
9. Mute the player.
-Command: **/mute**
+Command: **/vcmute**
10. Unmute the player.
-Command : **/unmute**
+Command : **/vcunmute**
11. Shows the playlist.
Command: **/playlist**
From d61e73bea3b56a98cb7c5d80f07deb8f8a28aeb8 Mon Sep 17 00:00:00 2001
From: subinps <64341611+subinps@users.noreply.github.com>
Date: Fri, 15 Oct 2021 01:04:17 +0530
Subject: [PATCH 2/7] shuffle on restart
---
utils/utils.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/utils/utils.py b/utils/utils.py
index 8c42da8b..d38dd07e 100644
--- a/utils/utils.py
+++ b/utils/utils.py
@@ -1619,6 +1619,8 @@ async def sync_from_db():
for var in Config.CONFIG_LIST:
setattr(Config, var, await db.get_config(var))
Config.playlist = await db.get_playlist()
+ if Config.playlist and Config.SHUFFLE:
+ await shuffle_playlist()
async def add_to_db_playlist(song):
if Config.DATABASE_URI:
From 29e8ed29a46481e9373c089151021a3c3a59df91 Mon Sep 17 00:00:00 2001
From: ArUn Pt <46273006+CW4RR10R@users.noreply.github.com>
Date: Wed, 27 Oct 2021 19:46:18 +0530
Subject: [PATCH 3/7] updated docker image for faster builds
---
Dockerfile | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/Dockerfile b/Dockerfile
index c5c0af54..eb0e51e4 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,15 +1,12 @@
-FROM debian:latest
+FROM nikolaik/python-nodejs:python3.9-nodejs16
RUN apt update && apt upgrade -y
-RUN apt install git curl python3-pip ffmpeg -y
-RUN pip3 install -U pip
-RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
- apt-get install -y nodejs && \
- npm i -g npm
+RUN apt install ffmpeg -y
+
COPY requirements.txt /requirements.txt
RUN cd /
-RUN pip3 install -U -r requirements.txt
+RUN pip3 install -U pip && pip3 install -U -r requirements.txt
RUN mkdir /VCPlayerBot
WORKDIR /VCPlayerBot
COPY start.sh /start.sh
-CMD ["/bin/bash", "/start.sh"]
\ No newline at end of file
+CMD ["/bin/bash", "/start.sh"]
From cebe008af6a37006874fcd268fb359a22cfd052f Mon Sep 17 00:00:00 2001
From: Anjana Madu <86356062+AnjanaMadu@users.noreply.github.com>
Date: Thu, 28 Oct 2021 22:10:25 +0530
Subject: [PATCH 4/7] Fixes (description)
when using docker env files should not contain space between variable and "=" mark.
---
env.sample | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/env.sample b/env.sample
index 736facda..26ad18c2 100644
--- a/env.sample
+++ b/env.sample
@@ -1,6 +1,6 @@
-API_ID = 12345
-API_HASH = 0123456789abcdef0123456789abcdef
-BOT_TOKEN = 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
-SESSION_STRING = ABC-DEF1234ghIkl-zyx57W2v1u123ew11_ABC-DEF1234ghIkl-zyx57W2v1u123ew11
-CHAT = -10012345678
-ADMINS = "1234567890 9876543210"
\ No newline at end of file
+API_ID=12345
+API_HASH=0123456789abcdef0123456789abcdef
+BOT_TOKEN=123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
+SESSION_STRING=ABC-DEF1234ghIkl-zyx57W2v1u123ew11_ABC-DEF1234ghIkl-zyx57W2v1u123ew11
+CHAT=-10012345678
+ADMINS=1234567890 9876543210
From f8b3eafc3472bec3fc9b319830ce399082df9d6d Mon Sep 17 00:00:00 2001
From: SUBIN <64341611+subinps@users.noreply.github.com>
Date: Wed, 3 Nov 2021 12:09:06 +0530
Subject: [PATCH 5/7] typo
---
app.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app.json b/app.json
index 7fa4eb30..e31c3679 100644
--- a/app.json
+++ b/app.json
@@ -72,7 +72,7 @@
},
"REPLY_MESSAGE": {
"description": "A reply message to those who message the USER account in PM. Make it blank if you do not need this feature.",
- "value": "Helo Ser, Iam a bot to play music, not havimg time to chat with you.",
+ "value": "Hey, Iam a bot to play music, not having time to chat with you.",
"required": false
}
},
From f8f056a9bc24470705f53cc890e65736841e628a Mon Sep 17 00:00:00 2001
From: Hunter XDD <85411336+Hunter-XDD@users.noreply.github.com>
Date: Wed, 17 Nov 2021 01:00:22 +0530
Subject: [PATCH 6/7] stable version of pytgcalls
---
requirements.txt | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/requirements.txt b/requirements.txt
index 374d8de6..cf58a4b7 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,14 +1,15 @@
git+https://github.com/pyrogram/pyrogram@master
-py-tgcalls==0.8.1rc1
+py-tgcalls
parse-torrent-name
tgcrypto
yt-dlp
-youtube_search_python
-youtube_search
+youtube-search-python
+httpx==0.14.2
+youtube-search
heroku3
pillow
motor
dnspython
pytz
apscheduler
-python-dotenv
\ No newline at end of file
+python-dotenv
From 0bc893532ac2f49e66039b6fd442bc7740c8a62a Mon Sep 17 00:00:00 2001
From: insidejob <84038103+insidescode@users.noreply.github.com>
Date: Thu, 2 Dec 2021 20:15:11 +0530
Subject: [PATCH 7/7] Added preferening emojis
---
plugins/commands.py | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/plugins/commands.py b/plugins/commands.py
index 05dd56fa..6ab51520 100644
--- a/plugins/commands.py
+++ b/plugins/commands.py
@@ -53,7 +53,7 @@
if Config.DATABASE_URI:
from utils import db
-HOME_TEXT = "Hey [{}](tg://user?id={}) πββοΈ\n\nIam A Bot Built To Play or Stream Videos In Telegram VoiceChats.\nI Can Stream Any YouTube Video Or A Telegram File Or Even A YouTube Live."
+HOME_TEXT = "Hey [{}](tg://user?id={}) π\n\nIam A Bot Built To Play or Stream Videos In Telegram VoiceChats.\nI Can Stream Any YouTube Video Or A Telegram File Or Even A YouTube Live."
admin_filter=filters.create(is_admin)
@Client.on_message(filters.command(['start', f"start@{Config.BOT_USERNAME}"]))
@@ -129,11 +129,11 @@ async def start(client, message):
return
buttons = [
[
- InlineKeyboardButton('βοΈ Update Channel', url='https://t.me/subin_works'),
- InlineKeyboardButton('π§© Source', url='https://github.com/subinps/VCPlayerBot')
+ InlineKeyboardButton('π Update Channel', url='https://t.me/subin_works'),
+ InlineKeyboardButton('π Source', url='https://github.com/subinps/VCPlayerBot')
],
[
- InlineKeyboardButton('π¨πΌβπ¦― Help', callback_data='help_main'),
+ InlineKeyboardButton('βοΈ Help', callback_data='help_main'),
InlineKeyboardButton('π Close', callback_data='close'),
]
]
@@ -188,15 +188,15 @@ async def show_help(client, message):
async def repo_(client, message):
buttons = [
[
- InlineKeyboardButton('π§© Repository', url='https://github.com/subinps/VCPlayerBot'),
- InlineKeyboardButton('βοΈ Update Channel', url='https://t.me/subin_works'),
+ InlineKeyboardButton('π Repository', url='https://github.com/subinps/VCPlayerBot'),
+ InlineKeyboardButton('π Update Channel', url='https://t.me/subin_works'),
],
[
- InlineKeyboardButton("π How to Deploy", url='https://youtu.be/mnWgZMrNe_0'),
+ InlineKeyboardButton("β How to Deploy", url='https://youtu.be/mnWgZMrNe_0'),
InlineKeyboardButton('π Close', callback_data='close'),
]
]
- await message.reply("The source code of this bot is public and can be found at VCPlayerBot.\nYou can deploy your own bot and use in your group.\n\nFeel free to starβοΈ the repo if you liked it π.", reply_markup=InlineKeyboardMarkup(buttons), disable_web_page_preview=True)
+ await message.reply("The source code of this bot is public and can be found at VCPlayerBot.\nYou can deploy your own bot and use in your group.\n\nFeel free to star π the repo if you liked it π.", reply_markup=InlineKeyboardMarkup(buttons), disable_web_page_preview=True)
await delete_messages([message])
@Client.on_message(filters.command(['restart', 'update', f"restart@{Config.BOT_USERNAME}", f"update@{Config.BOT_USERNAME}"]) & admin_filter & chat_filter)