rene-roscher/ts3audiobot

Api client for the c# project ts3audiobot designed for use in laravel applications

2.0 2021-02-20 04:25 UTC

This package is auto-updated.

Last update: 2024-10-20 11:59:26 UTC


README

Software License Latest Version on Packagist Total Downloads

Introduction

Php Api client for the c# musicbot Ts3AudioBot for the laravel artisan framework

Installation

  • Use following command to install:
composer require rexlmanu/ts3audiobot

Only when for laravel below 5.4:

  • Add the service provider to your providers[] array in config/app.php file like:
rexlManu\Ts3AudioBot\Providers\Ts3AudioBotServiceProvider::class
  • Add the alias to your aliases[] array in config/app.php file like:
'Ts3AudioBot' => rexlManu\Ts3AudioBot\Facades\Ts3AudioBot::class

Usage

Following are some ways through which you can access the ts3audiobot provider:

// Import the class namespaces first, before using it directly
use rexlManu\Ts3AudioBot\Facades\Ts3AudioBot;

$instance = Ts3AudioBot::instance('your address', 58913, 'your token', true);

$instance->bot(1)->play(rawurlencode('https://www.youtube.com/watch?v=yHwGIA4VeOc'));

$instance->help();

$instance->systemInfo();

Support

This plugin only supports Laravel 5.1 or greater.

  • In case of any issues, kindly create one on the Issues section.
  • If you would like to contribute:
    • Fork this repository.
    • Implement your features.
    • Generate pull request.