Skip to content

Instantly share code, notes, and snippets.

@zoffixznet
Created December 3, 2015 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zoffixznet/b2a09bc9e3a33c91a865 to your computer and use it in GitHub Desktop.
Save zoffixznet/b2a09bc9e3a33c91a865 to your computer and use it in GitHub Desktop.
my ( $nick, $channel ) = 'P6NotABot', '#perl6-recon';
await IO::Socket::Async.connect('irc.freenode.net', 6667).then({ given .result {
.print(qq:to/END/
NICK $nick
USER $nick $nick irc.freenode.net :Really not a bot
JOIN $channel
END
);
react { whenever .chars-supply { .say } }
}});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment