A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/liz3/tokio below:

liz3/tokio: A discord audio playback library in c++ with node bindings

This project is still WIP. C++ Discord library with node bindings focused on audio playback.

The Core parts as networking with discord/audio decoding and encoding is written in c++11. Theres a thin api wrapper around the native bindings written in Typescript

To use the demo bot simply use the docker image

Note: The windows support isnt fully done and i cannot guarantee stability on windows

First of install windows-build-toold (Admin cmd/Powershell)

npm install --global --production windows-build-tools

Then also install vcpkg

Install native dependencies

brew install mad libsodium opus opusfile nlohmann-json

Then simply: ./setup.sh

(This is applied to apt using distros, but should work on all, tested in ubuntu 19.10 docker container) apt install nlohmann-json3-dev libmad0-dev libsodium-dev libopus-dev libopusfile-dev

Then simply: ./setup.sh

Run this in the folder where you installed vcpkg

> vcpkg install libsodium:x64-windows
> vcpkg install opusfile:x64-windows
> vcpkg install opus:x64-windows
> vcpkg install ixwebsocket[mbedtls]:x64-windows
> vcpkg install nlohmann-json:x64-windows
> vcpkg install libmad:x64-windows
  1. npm install
  2. npm run compile

(Make sure to use forward slashes!, use git bash for the sake of inline env vars)

  1. npm install
  2. VCPKG_ROOT=/path/to/vcpkg-root npm run compile, Example: VCPKG_ROOT=C:/Users/liz3/Desktop/vcpkg npm run compile

After building, in order to run you can use the npm start script.

TOKEN=my_discord_token npm start

(Use git bash)

TOKEN=my_discord_token npm start

To add Youtube dl which is needed by the web fetcher, simply run the script to fetch it. The script will clone and build youtube-dl.

(Make sure you have python)

./youtube-dl.sh

Tokio is free software licensed under GPL 2.0


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4