Giter VIP home page Giter VIP logo

callsmusic's Introduction

Calls Music — Telegram bot + userbot for streaming audio in group calls

✍🏻 Requirements

  • FFmpeg
  • Python 3.7+

🚀 Deployment

🛠 Configuration

  1. Copy example.env to .env and fill it with your credentials.
  2. Install Python requirements:
    pip install -U -r requirements.txt
  3. Run:
    python -m callsmusic

🐬 Docker

  1. Build:
    docker build -t musicplayer .
  2. Run:
    docker run --env-file .env musicplayer

💜 Heroku

Deploy

ℹ️ Commands

Command Description
/play play the replied audio file or YouTube video
/pause pause the audio stream
/resume resume the audio stream
/skip skip the current audio stream
/mute mute the userbot
/unmute unmute the userbot
/stop clear the queue and remove the userbot from the call

📄 License

GNU Affero General Public License v3.0-or-later

Read more

✨ Credits

callsmusic's People

Contributors

dashezup avatar roj1512 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

Watchers

 avatar  avatar  avatar

callsmusic's Issues

Group admin

Hi how can make gruop admin only can play music stop pause etc

Error `ValueError: invalid literal for int() with base 10: '10 # in minutes (default: 7)'`

I am getting error
sudo docker run --env-file .env musicplayer

Traceback (most recent call last):
  File "main.py", line 3, in <module>
    from callsmusic import run
  File "/app/callsmusic/__init__.py", line 2, in <module>
    import config
  File "/app/config.py", line 13, in <module>
    DURATION_LIMIT = int(getenv("DURATION_LIMIT", "7"))
ValueError: invalid literal for int() with base 10: '10 # in minutes (default: 7)'

My config file

from os import getenv

from dotenv import load_dotenv

load_dotenv()

SESSION_NAME = getenv("0000000")
BOT_TOKEN = getenv("000000000")

API_ID = int(getenv("API_ID", "00000"))
API_HASH = getenv("0000000000000")

DURATION_LIMIT = int(getenv("DURATION_LIMIT", "100"))

COMMAND_PREFIXES = list(getenv("COMMAND_PREFIXES", "/ !").split())

SUDO_USERS = list(map(int, getenv("000000").split()))

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.