Skip to content

Commit

Permalink
Version 0.10.0 commit
Browse files Browse the repository at this point in the history
  • Loading branch information
JABirchall committed Aug 23, 2016
1 parent 5054261 commit 7d3c07d
Show file tree
Hide file tree
Showing 18 changed files with 19 additions and 35 deletions.
3 changes: 1 addition & 2 deletions app/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ public function __construct()
$this->capsule->setAsGlobal();
$this->capsule->bootEloquent();
}

}
}
3 changes: 1 addition & 2 deletions app/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,5 +250,4 @@ function onKick()
{

}

}
}
5 changes: 2 additions & 3 deletions app/TeamSpeak3Bot.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class TeamSpeak3Bot
/**
* @var string
*/
const NIMDA_VERSION = '0.9.1';
const NIMDA_VERSION = '0.10.0';
const NIMDA_TYPE = '-alpha1';

/**
Expand Down Expand Up @@ -562,5 +562,4 @@ public function onException(Ts3Exception $e)
{
$this->printOutput("Error {$e->getCode()}: {$e->getMessage()}");
}

}
}
2 changes: 1 addition & 1 deletion config/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ class Database
],
],
];
}
}
2 changes: 1 addition & 1 deletion config/Teamspeak.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ class TeamSpeak
]
];

}
}
Binary file modified database.sqlite
Binary file not shown.
3 changes: 1 addition & 2 deletions plugins/AdvancedPluginContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@

interface AdvancedPluginContract extends PluginContract
{

public function install();

public function update($version);

}
}
2 changes: 1 addition & 1 deletion plugins/BadChannelName.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ private function handle()
echo $e->getMessage();
}
}
}
}
1 change: 0 additions & 1 deletion plugins/ChannelGroupNotifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public function isTriggered()
$this->notify();
}
}

}

protected function notify()
Expand Down
5 changes: 2 additions & 3 deletions plugins/ClientInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,13 @@ 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");
$this->sendOutput("[COLOR=blue][B]%s - Last IP: %s", $name, $clientInfo["client_lastip"]);
} catch (Ts3Exception $e) {
$this->sendOutput("[color=red][b]ERROR : %s", $e->getMessage());
}

}
}
}
3 changes: 1 addition & 2 deletions plugins/Jail.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,4 @@ public function isTriggered()
echo $message;
}
}

}
}
2 changes: 1 addition & 1 deletion plugins/Kick.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ public function isTriggered()
}
}
}
}
}
1 change: 0 additions & 1 deletion plugins/MD5.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ public function isTriggered()
$this->sendOutput("md5(%s) => %s", $this->info['text'], md5($this->info['text']));
}
}

5 changes: 1 addition & 4 deletions plugins/NoInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,4 @@

use App\Plugin;

class NoInterface extends Plugin
{

}
class NoInterface extends Plugin{}
3 changes: 1 addition & 2 deletions plugins/PluginContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@
interface PluginContract
{
public function isTriggered();

}
}
5 changes: 1 addition & 4 deletions plugins/Quotes.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

namespace Plugin;


use App\Plugin;
use Illuminate\Database\Capsule\Manager;
use Illuminate\Database\Schema\Blueprint;
Expand Down Expand Up @@ -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();

Expand Down Expand Up @@ -112,5 +110,4 @@ public function update($version)
echo "Update From 0.8, ";
}
}

}
}
3 changes: 1 addition & 2 deletions plugins/Seen.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,5 @@ public function isTriggered()
} catch (Ts3Exception $e) {
$this->sendOutput("[color=red][b]ERROR : %s", $e->getMessage());
}

}
}
}
6 changes: 3 additions & 3 deletions plugins/WelcomeMsg.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Plugin;

use App\Plugin;
use Carbon\Carbon;

class WelcomeMsg extends Plugin implements PluginContract
{
Expand All @@ -25,13 +26,12 @@ 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"],
];

$msg = strtr($this->CONFIG['msg'], $format);

$client->message($msg);
}

}
}

0 comments on commit 7d3c07d

Please sign in to comment.