(Update) IRC Announce Message Format

This commit is contained in:
HDVinnie
2018-03-05 12:10:03 -05:00
parent 277ca6cb35
commit 7efe85477a
+6 -2
View File
@@ -326,9 +326,13 @@ class TorrentController extends Controller
$bot = new IRCAnnounceBot();
if (config('irc-bot.enabled') == true) {
if ($torrent->anon == 0) {
$bot->message("#announce", "User " . $user->username . " has uploaded " . $torrent->name . " grab it now!");
$bot->message("#announce", "["config('app.name')"] User " . $user->username . " has uploaded " . $torrent->name . " grab it now!");
$bot->message("#announce", "[Category:" . $torrent->category->name . "]" "[Type:" . $torrent->type . "]" "[Size:" . $torrent->getSize() . "]");
$bot->message("#announce", "[Link: {$appurl}/torrents/" . $torrent->slug . "." . $torrent->id "]");
} else {
$bot->message("#announce", "An anonymous user has uploaded " . $torrent->name . " grab it now!");
$bot->message("#announce", "["config('app.name')"] An anonymous user has uploaded " . $torrent->name . " grab it now!");
$bot->message("#announce", "[Category:" . $torrent->category->name . "]" "[Type:" . $torrent->type . "]" "[Size:" . $torrent->getSize() . "]");
$bot->message("#announce", "[Link: {$appurl}/torrents/" . $torrent->slug . "." . $torrent->id "]");
}
}