Coder Social home page Coder Social logo

guilded-music-bot's Introduction

THIS REPO HAS BEEN ARCHIVED

Due to the Guilded.py client api now being unsupported, this repo has been archived.

GUILDED MUSIC BOT

NOTES

Note : The script is not actually working as just a bot its an interface between the audio player on host device and guilded. This script in essence just helps you channel the song you want to play to a guilded vc, It handles searching for the song from youtube, downloading the file, converting it into a format that can be played on hardware and then giving a response on guilded. The user needs to use the same device as audio input on guilded as the bot has been configured to play on device, now here we encounter a problem, the script outputs audio but we need an audio input in guilded and that is where VB audio cable or configurung pulse audio comes in I would only be explaining VB Audio Cable setup.

Interaction Flow Chart

Flow Chart

How to run locally

  1. git clone this repo

  2. cd to folder directory

  3. Download and install VB Audio Cable if on windows or configuring pulse audio if on linux and configure in config.ini

  4. Configure to use bot account or user account accordingly.

  5. then run the command ./venv/Scripts/activate.ps1 on windows, and source ./venv/Scripts/activate on *nix systems

  6. then run pip install -r requirements.txt

  7. then run python ./project/set.py

  8. Use the the audio output as mic in guilded that the script is outputing to.

  9. Use {prefix}play {songname} to search for the song and play with the user account configured!

VB Audio Cable

The bot outputs the audio to VB Audio cable input and then a guilded client can be configured to use VB Audio Cable Output as input with voice activity.

Running a bot and a user account on same device

This has been problematic in my case, probably because of how guilded handles webrtc connections, anyways the way to run would be the user of the script would have to run 2 accounts on their device, probably one on the bot account on the web using the Audio Cable as voice input on the web client, and the user's own account in the desktop client using different voice input device.

Enjoy the result of my suffering ;_;

guilded-music-bot's People

Contributors

sohamjaiswal avatar

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.