Code Monkey home page Code Monkey logo

yadl's Introduction

YADL

Yet Another Discord Library

Building

Requirements

libm libz libdl libuv pthread openssl libopus libsodium libwebsockets libcap(linux only)
  1. create a build directory at the project root directory.
  2. enter build directory.
  3. cmake .. and make to build YADL library. (cmake argument - YADL_BUILD_DEPS is available.)

Test codes

Voice Connection

  1. Type !!connect [voice_channel_id] any guild text channel.
  2. A FIFO pipe that named guild id would have been created in a directory with test_yadl.
  3. Send the s16le audio data to the pipe, the bot will play the audio.
    youtube-dl --quiet -f bestaudio "[Youtube Video URL]" -o - | ffmpeg  -i pipe: -f s16le -ac 2 -ar 48000 -acodec pcm_s16le - > ./928872876965249065.pipe
  4. Type !!disconnect to disconnect from the voice channel.

yadl's People

Contributors

hurrhnn avatar kokoseij avatar

Stargazers

김지훈 avatar

Watchers

 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.