Skip to content

Added preferening emojis #78

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
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
13 changes: 5 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
CMD ["/bin/bash", "/start.sh"]
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
},
Expand Down
4 changes: 2 additions & 2 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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**
Expand Down
12 changes: 6 additions & 6 deletions env.sample
Original file line number Diff line number Diff line change
@@ -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"
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
16 changes: 8 additions & 8 deletions plugins/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
if Config.DATABASE_URI:
from utils import db

HOME_TEXT = "<b>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.</b>"
HOME_TEXT = "<b>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.</b>"
admin_filter=filters.create(is_admin)

@Client.on_message(filters.command(['start', f"start@{Config.BOT_USERNAME}"]))
Expand Down Expand Up @@ -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'),
]
]
Expand Down Expand Up @@ -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("<b>The source code of this bot is public and can be found at <a href=https://github.com/subinps/VCPlayerBot>VCPlayerBot.</a>\nYou can deploy your own bot and use in your group.\n\nFeel free to star☀️ the repo if you liked it 🙃.</b>", reply_markup=InlineKeyboardMarkup(buttons), disable_web_page_preview=True)
await message.reply("<b>The source code of this bot is public and can be found at <a href=https://github.com/subinps/VCPlayerBot>VCPlayerBot.</a>\nYou can deploy your own bot and use in your group.\n\nFeel free to star 🌟 the repo if you liked it 🙃.</b>", 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)
Expand Down
9 changes: 5 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
python-dotenv
2 changes: 2 additions & 0 deletions utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down