team-reflex / ebot-api
An API to interact with the CS:GO match manager, eBot
Installs: 1 058
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: ^5.4
- illuminate/database: 5.1.*
- illuminate/events: 5.1.*
- illuminate/support: 5.1.*
This package is not auto-updated.
Last update: 2020-07-10 19:30:26 UTC
README
This is an API to interact with the popular CS:GO Match Manager eBot. It is still a work in progress, not to be used for production quite yet.
Install
To get the API, you need to get Composer. Once you have Composer installed, run composer require team-reflex/ebot-api
in your project directory. This will download the API so you can use it.
Usage
We are assuming that you have already imported the Composer autoload file into your project. If you have not done so, read the quick-start guide on the Composer website here.
Setting up
Firstly, you need to set up your config.
<?php use Reflex\Config; $file_directory = __DIR__; $file_name = '.env'; Config::loadEnv($file_directory, $file_name);
There is a config example available here.
Afterwards, you should set up your capsule.
use Reflex\Database\Capsule; $capsule = new Capsule; $capsule->addAndBoot('hostname', 'username', 'password', 'database', 'prefix');
Instead of $capsule->addAndBoot()
you can also do the following:
$capsule->addConnection('hostname', 'username', 'password', 'database', 'prefix'); $capsule->boot();
Interacting with eBot
More information can be found on the wiki on the right.