Open
Conversation
Mostly direct translation of the Augmented BNF for an IRC message to
a giant regex.
It takes a raw IRC message and returns an array with:
`prefix` // The whole prefix string
`nickname` // The nickname from the prefix
`username` // The username from the prefix
`hostname` // The hostname from the prefix
`servername` // The servername from the prefix
`command` // The command
`params` // The parameters
I'm pretty sure this can be optimised quite a lot, but for now it parses
following the specification and it works ;)
Needed to explicitly set the minimum version we need of the phpunit/php-token-stream package. Probably somewhere in the phpunit dependency tree it have specified a minimum version of that package that doesn't support PHP 7.
| } | ||
|
|
||
| ob_start(); | ||
| var_dump($message); |
Author
There was a problem hiding this comment.
That is there so we're able to see what the incoming messages look like.
It's written out in the terminal where you're running the bot ;)
added 2 commits
February 11, 2016 13:06
Contributor
|
👍 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.