<commit_before># Teamspeak 3 server manager

### What is it?
Teamspeak 3 server manager is a simple web application built on Laravel to let users manage their own Teamspeak servers. Its currently fairly new and it still needs allot of work. But the basics are working.

### What does it do?
Right now it lets you create, delete and edit servers. You can start, stop and restart them. Edit their configuration. Create and delete tokens. And check how many people are online. All from your own server.

### Requirements
Its built on Laravel 5.1 LTS. So atleast PHP 5.5.9. You also need a webserver. If it isn't local you should make sure your teamspeak server's query port is exposed to the internet. (Recommended is to run it locally)

### Installation
The setup is pretty simple:
- Clone this repo somewhere (Make sure you have git installed, or download the zip)
    `git clone https://github.com/Taronyuu/Teamspeak3-server-manager.git`
- Set the required values in the `.env` file. You can copy them from the `.env.example` file. (Create the `.env` file if it does not exist by copying the `.env.example` file)


    TS_USERNAME=serveradmin
    TS_PASSWORD={<PASSWORD>}
    TS_SERVER_IP=127.0.0.1
    TS_SERVER_PORT=10011

- Run composer install
    `composer install`
- Install a teamspeak server somewhere and start it. Doing this is outside the scope of this readme file.
-   Make sure `DB_CONNECTION=sqlite` is set to sqlite!
-   Create an empty file named `database.sqlite` in the storage folder. (so `storage/database.sqlite`). If you are on Linux use `touch storage/database.sqlite`.
-   Run `php artisan migrate:refresh` to update the sqlite file with the right columns
-   Run `php artisan teamspeak:reset` to remove all existing Teamspeak servers. This is because at the moment there is no sync option. ***THIS DOES REMOVE ALL EXISTING SERVERS.***
-   Go to `yoururl.com/install` and create a new user.
-   Click on an item in the left sidebar and you will be asked to login.
-   Login
-   Enjoy

### Can you add.... ?
Ofcourse! Please open an issue or send me a message. I'll be more than happy to add features whenever I have time. :)

### Screens
![Server overview](https://snapr.pw/i/86e627f677.png "Server overview")

![Menu](https://snapr.pw/i/bd64f1594e.png "Menu")<commit_msg>#15 TS3DB sync, now possible? Added readme update<commit_after># Teamspeak 3 server manager

### What is it?
Teamspeak 3 server manager is a simple web application built on Laravel to let users manage their own Teamspeak servers. Its currently fairly new and it still needs allot of work. But the basics are working.

### What does it do?
Right now it lets you create, delete and edit servers. You can start, stop and restart them. Edit their configuration. Create and delete tokens. And check how many people are online. All from your own server.

### Requirements
Its built on Laravel 5.1 LTS. So atleast PHP 5.5.9. You also need a webserver. If it isn't local you should make sure your teamspeak server's query port is exposed to the internet. (Recommended is to run it locally)

### Installation
The setup is pretty simple:
- Clone this repo somewhere (Make sure you have git installed, or download the zip)
    `git clone https://github.com/Taronyuu/Teamspeak3-server-manager.git`
- Set the required values in the `.env` file. You can copy them from the `.env.example` file. (Create the `.env` file if it does not exist by copying the `.env.example` file)


    TS_USERNAME=serveradmin
    TS_PASSWORD={<PASSWORD>}
    TS_SERVER_IP=127.0.0.1
    TS_SERVER_PORT=10011

- Run composer install
    `composer install`
- Install a teamspeak server somewhere and start it. Doing this is outside the scope of this readme file.
-   Make sure `DB_CONNECTION=sqlite` is set to sqlite!
-   Create an empty file named `database.sqlite` in the storage folder. (so `storage/database.sqlite`). If you are on Linux use `touch storage/database.sqlite`.
-   Run `php artisan migrate:refresh` to update the sqlite file with the right columns
-   Run `php artisan teamspeak:reset` to remove all existing Teamspeak servers. This is because at the moment there is no sync option. ***THIS DOES REMOVE ALL EXISTING SERVERS.***
-   Go to `yoururl.com/install` and create a new user.
-   Click on an item in the left sidebar and you will be asked to login.
-   Login
-   Enjoy

### Additional commands
We provide a small number of commands which you can use to complete your panel.

Command: `php artisan teamspeak:reset`
Description: **DANGEROUS** command, this will remove **all** your teamspeak server from the teamspeak 3 instance and database.

Command: `php artisan teamspeak:sync`
Description: This command will synchronize all the servers with your database and the teamspeak 3 instance itself.

### Can you add.... ?
Ofcourse! Please open an issue or send me a message. I'll be more than happy to add features whenever I have time. :)

### Screens

![Server overview](https://snapr.pw/i/86e627f677.png "Server overview")

![Menu](https://snapr.pw/i/bd64f1594e.png "Menu")
{'fraction_non_alphanumeric': 0.0791295746785361, 'fraction_numerical': 0.014045499505440158, 'mean_word_length': 3.8944820909970956, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4056890', 'n_tokens_mistral': 1522, 'n_tokens_neox': 1410, 'n_words': 721}