-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from ghostzero/v2-develop
- Loading branch information
Showing
61 changed files
with
1,280 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: CI Tests | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build-test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: php-actions/composer@v1 | ||
- name: PHPUnit Tests | ||
uses: php-actions/phpunit@v9 | ||
with: | ||
configuration: phpunit.xml | ||
args: --coverage-text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
/.idea | ||
composer.lock | ||
.phpunit.result.cache | ||
tmi.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace GhostZero\Tmi\Events\Inspector; | ||
|
||
use GhostZero\Tmi\Events\Event; | ||
use stdClass; | ||
|
||
class InspectorEvent extends Event | ||
{ | ||
public stdClass $payload; | ||
|
||
public function __construct(stdClass $payload) | ||
{ | ||
$this->payload = $payload; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace GhostZero\Tmi\Events\Inspector; | ||
|
||
use GhostZero\Tmi\Events\Event; | ||
|
||
class InspectorReadyEvent extends Event | ||
{ | ||
public string $url; | ||
|
||
public function __construct(string $url) | ||
{ | ||
$this->url = $url; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace GhostZero\Tmi\Events\Irc; | ||
|
||
use GhostZero\Tmi\Channel; | ||
use GhostZero\Tmi\Events\Event; | ||
|
||
class KickEvent extends Event | ||
{ | ||
public Channel $channel; | ||
public string $user; | ||
public string $message; | ||
|
||
public function __construct(Channel $channel, string $user, string $message) | ||
{ | ||
$this->channel = $channel; | ||
$this->user = $user; | ||
$this->message = $message; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace GhostZero\Tmi\Events\Irc; | ||
|
||
use GhostZero\Tmi\Events\Event; | ||
|
||
class MotdEvent extends Event | ||
{ | ||
public string $message; | ||
|
||
public function __construct(string $message) | ||
{ | ||
$this->message = $message; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace GhostZero\Tmi\Events\Irc; | ||
|
||
use GhostZero\Tmi\Channel; | ||
use GhostZero\Tmi\Events\Event; | ||
|
||
class NameReplyEvent extends Event | ||
{ | ||
public Channel $channel; | ||
public array $names; | ||
|
||
public function __construct(Channel $channel, array $names) | ||
{ | ||
$this->channel = $channel; | ||
$this->names = $names; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace GhostZero\Tmi\Events\Irc; | ||
|
||
use GhostZero\Tmi\Events\Event; | ||
|
||
class PingEvent extends Event | ||
{ | ||
|
||
} |
Oops, something went wrong.