Giter VIP home page Giter VIP logo

_pyvox's Introduction

PyVox

Version Twitter
YouTube and Soundcloud playback bot for Discord. Supports some other websites as well.
Feel free to contribute, I appreciate any help I can get.

Installation

Use pip installations first

pip install git+https://github.com/Rapptz/discord.py@async
pip install youtube-dl

Then, install ffmpeg. This bot requires opus to work. If on windows put the opus .dll in to the same folder as the bot file.

Usage

Run PyVox by using the command line arguments:

python pyvox.py bot_email bot_password

Replace bot_email and bot_password with the bot's email and passwords respectively.

Commands are run by mentioning the bot followed by the command:

@Bot init

Bot = the bot's username

Commands

init [voice channel name]: Initialises the bot to the voice channel and makes him join the given channel. It also binds itself to the text channel this command got executed in.
destroy: Destroys the voice connection and channel binding.

The following commands are meant for the bound channel:
yt [id]: Queues the youtube video with the given video id.
yp [playlist-id]: Queues a youtube playlist.
yq [search-value]: Queues the first video found by the given search term on youtube.
sc [song "ID"]: Queues the soundcloud audio with the given id.
sp [set "ID"]: Queues a soundcloud playlist.
vc [link "ID"]: Queues a vocaroo voice message.
try [url]: Tries to queue the audio of a video on the given website.
list: Lists the videos on the queue.
link: Sends the link of the currently playing video.
next: Vote to skip the current song.
time: Shows the current playback time.

_pyvox's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

_pyvox's Issues

Error on function "run()"

Hi,

I'm running Windows and I always get this error: TypeError: run() takes 1 positional argument but 3 were given
It doesn't matter how many arguments I give, this error always shows up. Any Idea why?

Can't play any music

I fired up a new docker container with ubuntu image, installed python3, docker, pynacl, ffmpeg and opus, cloned into pyvox gave full path to libopus.so in pyvox.py. The bot joins both text and voice channels after I call the init command but whenever I try to play a youtube track I get this error:

WARNING: Assuming --restrict-filenames since file system encoding cannot encode all characters. Set the LC_ALL environment variable to fix this.
[youtube] ZaI2IlHwmgQ: Downloading webpage
[youtube] ZaI2IlHwmgQ: Downloading video info webpage
[youtube] ZaI2IlHwmgQ: Extracting video information
[Fri Dec  9 19:28:02 2016]TheUltimateBot#8363<@256855285581348864>: Queued **The Black Eyed Peas - Pump It** by **BlackEyedPeasVEVO** (290640549 views) [3:46]```
Nothing plays, however the bot says the song was queued. Any help is appreciated. I am on root if that makes any difference.

Couple of suggestions and issue

Hi, just putting down couple of things here to think

First, the issue:
The console seems to get a pull error at random times, which instantly skips to the next song

Here's a screenshot of it if it helps at all

I don't know what causes it so any help is appreciated. Using Windows 10 64-bit


As for the suggestions, here's maybe something for the possible next code:

  • yt-command able to download if a link is thrown. Getting that ID can be a bit bothersome
  • Possible "poll" to be able to skip a song. Like 2 people needs to put the skip in order for it to actually skip.
  • Admin actions, like able to determine people to be able to (if going with above suggestion) instantly skip, make the bot join to or leave the channels and maybe even blacklist people from not able to request a song.
  • The bot able to delete the command and even the input after a while. The chat gets easily very filled with the bot and the commands.

These are just my 2c

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.