diff --git a/app/Database.php b/app/Database.php index 4cd2921..fc8571a 100644 --- a/app/Database.php +++ b/app/Database.php @@ -24,5 +24,4 @@ public function __construct() $this->capsule->setAsGlobal(); $this->capsule->bootEloquent(); } - -} \ No newline at end of file +} diff --git a/app/Plugin.php b/app/Plugin.php index 08d4d75..24b0338 100644 --- a/app/Plugin.php +++ b/app/Plugin.php @@ -250,5 +250,4 @@ function onKick() { } - -} \ No newline at end of file +} diff --git a/app/TeamSpeak3Bot.php b/app/TeamSpeak3Bot.php index b44090e..af674db 100644 --- a/app/TeamSpeak3Bot.php +++ b/app/TeamSpeak3Bot.php @@ -30,7 +30,7 @@ class TeamSpeak3Bot /** * @var string */ - const NIMDA_VERSION = '0.9.1'; + const NIMDA_VERSION = '0.10.0'; const NIMDA_TYPE = '-alpha1'; /** @@ -562,5 +562,4 @@ public function onException(Ts3Exception $e) { $this->printOutput("Error {$e->getCode()}: {$e->getMessage()}"); } - -} \ No newline at end of file +} diff --git a/config/Database.php b/config/Database.php index f46ea8c..641386e 100644 --- a/config/Database.php +++ b/config/Database.php @@ -77,4 +77,4 @@ class Database ], ], ]; -} \ No newline at end of file +} diff --git a/config/Teamspeak.php b/config/Teamspeak.php index 19128fa..36e96b0 100644 --- a/config/Teamspeak.php +++ b/config/Teamspeak.php @@ -25,4 +25,4 @@ class TeamSpeak ] ]; -} \ No newline at end of file +} diff --git a/database.sqlite b/database.sqlite index aa656e6..473da2c 100644 Binary files a/database.sqlite and b/database.sqlite differ diff --git a/plugins/AdvancedPluginContract.php b/plugins/AdvancedPluginContract.php index 53cc3f5..affb71c 100644 --- a/plugins/AdvancedPluginContract.php +++ b/plugins/AdvancedPluginContract.php @@ -10,9 +10,8 @@ interface AdvancedPluginContract extends PluginContract { - public function install(); public function update($version); -} \ No newline at end of file +} diff --git a/plugins/BadChannelName.php b/plugins/BadChannelName.php index 53bd7ae..76e43b7 100644 --- a/plugins/BadChannelName.php +++ b/plugins/BadChannelName.php @@ -44,4 +44,4 @@ private function handle() echo $e->getMessage(); } } -} \ No newline at end of file +} diff --git a/plugins/ChannelGroupNotifications.php b/plugins/ChannelGroupNotifications.php index e319db0..3ca698a 100644 --- a/plugins/ChannelGroupNotifications.php +++ b/plugins/ChannelGroupNotifications.php @@ -38,7 +38,6 @@ public function isTriggered() $this->notify(); } } - } protected function notify() diff --git a/plugins/ClientInfo.php b/plugins/ClientInfo.php index 8d68e26..31dd1d3 100644 --- a/plugins/ClientInfo.php +++ b/plugins/ClientInfo.php @@ -29,7 +29,7 @@ public function isTriggered() $this->sendOutput("[COLOR=blue][B]%s - Database ID: %s", $name, $clientInfo["client_database_id"]); $this->sendOutput("[COLOR=blue][B]%s - Unique ID: %s", $name, $clientInfo["client_unique_identifier"]); - $this->sendOutput("[COLOR=blue][B]%s - First joined: %s", $name, Carbon::createFromTimestamp($clientInfo["client_created"])->toDateTimeString()); + $this->sendOutput("[COLOR=blue][B]%s - First joined: %s", $name, Carbon::createFromTimestamp($clientInfo["client_created"])->toDayDateTimeString()); $this->sendOutput("[COLOR=blue][B]%s - Last connection: %s", $name, Carbon::createFromTimestamp($clientInfo["client_lastconnected"])->diffForHumans()); $this->sendOutput("[COLOR=blue][B]%s - Total connections: %s", $name, $clientInfo["client_totalconnections"]); $this->sendOutput("[COLOR=blue][B]%s - Client description: %s", $name, ($clientInfo["client_description"]) ? $clientInfo["client_description"] : "N/A"); @@ -37,6 +37,5 @@ public function isTriggered() } catch (Ts3Exception $e) { $this->sendOutput("[color=red][b]ERROR : %s", $e->getMessage()); } - } -} \ No newline at end of file +} diff --git a/plugins/Jail.php b/plugins/Jail.php index fd5a7d3..d67e43e 100644 --- a/plugins/Jail.php +++ b/plugins/Jail.php @@ -44,5 +44,4 @@ public function isTriggered() echo $message; } } - -} \ No newline at end of file +} diff --git a/plugins/Kick.php b/plugins/Kick.php index ed65b5c..6e25282 100644 --- a/plugins/Kick.php +++ b/plugins/Kick.php @@ -45,4 +45,4 @@ public function isTriggered() } } } -} \ No newline at end of file +} diff --git a/plugins/MD5.php b/plugins/MD5.php index ac3f083..af3a219 100644 --- a/plugins/MD5.php +++ b/plugins/MD5.php @@ -24,4 +24,3 @@ public function isTriggered() $this->sendOutput("md5(%s) => %s", $this->info['text'], md5($this->info['text'])); } } - diff --git a/plugins/NoInterface.php b/plugins/NoInterface.php index 3d7de0e..4b3cda3 100644 --- a/plugins/NoInterface.php +++ b/plugins/NoInterface.php @@ -10,7 +10,4 @@ use App\Plugin; -class NoInterface extends Plugin -{ - -} \ No newline at end of file +class NoInterface extends Plugin{} diff --git a/plugins/PluginContract.php b/plugins/PluginContract.php index 95b4b58..6a8befe 100644 --- a/plugins/PluginContract.php +++ b/plugins/PluginContract.php @@ -11,5 +11,4 @@ interface PluginContract { public function isTriggered(); - -} \ No newline at end of file +} diff --git a/plugins/Quotes.php b/plugins/Quotes.php index 30d0422..388e69d 100644 --- a/plugins/Quotes.php +++ b/plugins/Quotes.php @@ -8,7 +8,6 @@ namespace Plugin; - use App\Plugin; use Illuminate\Database\Capsule\Manager; use Illuminate\Database\Schema\Blueprint; @@ -70,7 +69,6 @@ public function isTriggered() $this->sendOutput("%s [b]- [color=green]Removed successfully", $id); return true; - } elseif ($this->info['text']->isInt()) { $quote = Quote::where('id', $this->info['text']->toInt())->first(); @@ -112,5 +110,4 @@ public function update($version) echo "Update From 0.8, "; } } - -} \ No newline at end of file +} diff --git a/plugins/Seen.php b/plugins/Seen.php index 6732a6a..8ae6dd6 100644 --- a/plugins/Seen.php +++ b/plugins/Seen.php @@ -33,6 +33,5 @@ public function isTriggered() } catch (Ts3Exception $e) { $this->sendOutput("[color=red][b]ERROR : %s", $e->getMessage()); } - } -} \ No newline at end of file +} diff --git a/plugins/WelcomeMsg.php b/plugins/WelcomeMsg.php index 69c60b7..d747364 100644 --- a/plugins/WelcomeMsg.php +++ b/plugins/WelcomeMsg.php @@ -3,6 +3,7 @@ namespace Plugin; use App\Plugin; +use Carbon\Carbon; class WelcomeMsg extends Plugin implements PluginContract { @@ -25,7 +26,7 @@ public function isTriggered() "%CL_VERSION%" => $client['client_version'], "%CL_PLATFORM%" => $client['client_platform'], "%CL_IP%" => $client['connection_client_ip'], - "%CL_CREATED%" => $clientInfo["client_created"], + "%CL_CREATED%" => Carbon::createFromTimestamp($clientInfo["client_created"])->toDayDateTimeString(), "%CL_TOTALCONNECTIONS%" => $clientInfo["client_totalconnections"], ]; @@ -33,5 +34,4 @@ public function isTriggered() $client->message($msg); } - -} \ No newline at end of file +}