Created
June 4, 2016 20:44
-
-
Save zoffixznet/0315a0330dc3cda0b6d9522f6dbd1290 to your computer and use it in GitHub Desktop.
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
role IRC::Client::Message { | |
has $.irc is required; | |
has Str:D $.nick is required; | |
has Str:D $.username is required; | |
has Str:D $.host is required; | |
has Str:D $.usermask is required; | |
has Str:D $.command is required; | |
has Str:D $.server is required; | |
has @.args is required; | |
method Str { "$.command @.args[]" } | |
} | |
role IRC::Client::Message::Privmsg does IRC::Client::Message { | |
has $.what; | |
} | |
role IRC::Client::Message::Privmsg::Channel does IRC::Client::Message::Privmsg { | |
has $.channel; | |
} | |
role IRC::Client::Message::Privmsg::Me does IRC::Client::Message::Privmsg {} | |
role IRC::Client::Message::Unknown does IRC::Client::Message { | |
method Str { "❚⚠❚ $.command @.args[]" } | |
} | |
role IRC::Client::Message::Numeric does IRC::Client::Message {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment