for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Jerodev\PhpIrcClient\Messages;
use Jerodev\PhpIrcClient\Helpers\Event;
use Jerodev\PhpIrcClient\IrcClient;
class WelcomeMessage extends IrcMessage
{
public function __construct(string $message)
parent::__construct($message);
}
/**
* On welcome message, join the selected channels.
*/
public function handle(IrcClient $client, bool $force = false): void
if ($this->handled && !$force) {
return;
foreach ($client->getChannels() as $channel) {
$client->join($channel->getName());
public function getEvents(): array
return [
new Event('registered'),
];