Coder Social home page Coder Social logo

lushaimusic / vcsmusicbot Goto Github PK

View Code? Open in Web Editor NEW
205.0 3.0 667.0 5.28 MB

A bot that can play music on Telegram Group and Channel Voice Chats

Home Page: http://telegram.dog/VCsMusicBot

License: GNU Affero General Public License v3.0

Dockerfile 0.19% Python 99.50% Shell 0.31%
youtube deezer jiosaavn music-bot saavn music-play play-song download-songs telegram-bot

vcsmusicbot's Introduction

VCsMusicBot v5.0

A bot that can play music on Telegram Group and Channel Voice Chats

Give your ๐Ÿ’™

Before clicking on deploy to heroku just click on fork and star just below

Deploy to Qovery

Deploy To Heroku ๐Ÿ“ก

  • Click the below button to watch the video tutorial on deploying

GET STRING SESSION FROM REPL RUN

Run on Repl.it

Deploy to VPS ๐Ÿƒ

# Install Git First (apt-instll git)
$ git clone https://github.com/LushaiMusic/VCsMusicBot
$ cd VCsMusicBot
# Upgrade sources
# Install All Requirements 
$ pip3 install -r requirements.txt
# Fork This Repo and fill local.env and config.py both with your own values.Then Start The Bot
$ python3 -m VCsMusicBot

Features โœ…

  • Thumbnail Support
  • Playlist Support
  • Current playback support
  • Showing track names when skipping
  • Zero downtime, Fully Stable
  • DEEZER,YOUTUBE & SAAVN PLAYBACK SUPPORTED
  • Settings panel
  • Control with buttons
  • Userbot auto join
  • Channel Music Play
  • Keyboard selection support for YouTube play

Commands for Group ๐Ÿ‘ฅ

For all in group

  • /play <song name> - play song you requested
  • /play <reply to audio> - play replied file
  • /dplay <song name> - play song you requested via deezer
  • /splay <song name> - play song you requested via jio saavn
  • /ytplay <song name>: Directly play song via YouTube Music
  • /playlist - Show now playing list
  • /current - Show now playing
  • /song <song name> - download songs you want quickly
  • /search <query> - search videos on youtube with details
  • /deezer <song name> - download songs you want quickly via deezer
  • /saavn <song name> - download songs you want quickly via saavn
  • /video <song name> - download videos you want quickly

Admins only ๐Ÿ…

  • /player - open music player settings panel
  • /pause - pause song play
  • /resume - resume song play
  • /skip - play next song
  • /end - stop music play
  • /userbotjoin - invite assistant to your chat
  • /userbotleave - remove assistant from your chat
  • /reload - Refresh admin list
  • /musicplayer [on/off] - Enable/Disable Music Player

Channel Music Play ๐Ÿ‘จโ€๐ŸŽค

For linked group admins only:

  • /cplay <song name> - play song you requested
  • /cplay <reply to audio> - play replied file
  • /cdplay <song name> - play song you requested via deezer
  • /csplay <song name> - play song you requested via jio saavn
  • /cplaylist - Show now playing list
  • /cccurrent - Show now playing
  • /cplayer - open music player settings panel
  • /cpause - pause song play
  • /cresume - resume song play
  • /cskip - play next song
  • /cend - stop music play
  • /userbotjoinchannel - invite assistant to your chat
  • channel is also can be used instead of c

If you donlt like to play in linked channel:

  1. Get your channel ID.
  2. Rename your group to: Channel Music: your_channel_id
  3. Add @VCsMusicPlayer as Channel admin with full perms
  4. add helper to channel
  5. Simply send commands in your group.

Commands for Sudo Users ๐Ÿ‘ฎ

  • /userbotleaveall - remove assistant from all chats
  • /gcast <reply to message> - globally brodcast replied message to all chats
  • /pmpermit [on/off] - enable/disable pmpermit message

PMpermit

  • .a - approove someone to pm you
  • .da - disapproove someone to pm you
  • Sudo Users can execute any command in any groups

Credits

Special Credits

vcsmusicbot's People

Contributors

zautekm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vcsmusicbot's Issues

Download error

youtube_dl.utils.DownloadError: ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Heroku Log showing error and crashed

2021-06-21T06:52:55.372722+00:00 app[worker.1]: Traceback (most recent call last):
2021-06-21T06:52:55.372729+00:00 app[worker.1]: File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
2021-06-21T06:52:55.372734+00:00 app[worker.1]: "main", mod_spec)
2021-06-21T06:52:55.372741+00:00 app[worker.1]: File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
2021-06-21T06:52:55.372742+00:00 app[worker.1]: exec(code, run_globals)
2021-06-21T06:52:55.372742+00:00 app[worker.1]: File "/app/MusicBot/main.py", line 38, in
2021-06-21T06:52:55.372747+00:00 app[worker.1]: run()
2021-06-21T06:52:55.372750+00:00 app[worker.1]: File "/usr/local/lib/python3.7/dist-packages/pytgcalls/pytgcalls.py", line 186, in run
2021-06-21T06:52:55.372751+00:00 app[worker.1]: self._app.start()
2021-06-21T06:52:55.372751+00:00 app[worker.1]: File "/usr/local/lib/python3.7/dist-packages/pyrogram/sync.py", line 56, in async_to_sync_wrap
2021-06-21T06:52:55.372752+00:00 app[worker.1]: return loop.run_until_complete(coroutine)
2021-06-21T06:52:55.372752+00:00 app[worker.1]: File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
2021-06-21T06:52:55.372752+00:00 app[worker.1]: return future.result()
2021-06-21T06:52:55.372753+00:00 app[worker.1]: File "/usr/local/lib/python3.7/dist-packages/pyrogram/methods/utilities/start.py", line 53, in start
2021-06-21T06:52:55.372753+00:00 app[worker.1]: is_authorized = await self.connect()
2021-06-21T06:52:55.372754+00:00 app[worker.1]: File "/usr/local/lib/python3.7/dist-packages/pyrogram/methods/auth/connect.py", line 39, in connect
2021-06-21T06:52:55.372754+00:00 app[worker.1]: await self.load_session()
2021-06-21T06:52:55.372754+00:00 app[worker.1]: File "/usr/local/lib/python3.7/dist-packages/pyrogram/client.py", line 669, in load_session
2021-06-21T06:52:55.372755+00:00 app[worker.1]: await self.storage.open()
2021-06-21T06:52:55.372755+00:00 app[worker.1]: File "/usr/local/lib/python3.7/dist-packages/pyrogram/storage/memory_storage.py", line 41, in open
2021-06-21T06:52:55.372755+00:00 app[worker.1]: self.name + "=" * (-len(self.name) % 4)
2021-06-21T06:52:55.372756+00:00 app[worker.1]: struct.error: unpack requires a buffer of 263 bytes

what to do
I placed all the config vars correctly

Bot takes quite long to start playing a song

i have deployed the bot on heroku , everything running well but one major issue is that the the bot functions quite slow while trying to play music .To be more specific , once i have sent /play song_name , its takes literally 10 seconds approx to start the song . This doesnt seem to happen in other similar telegram music bots , ( they take within 3-5 seconds max ) , so i beleive this bot could be improved in this regard

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.