Skip to content

Instantly share code, notes, and snippets.

@KamilaBorowska
Created September 3, 2012 11:16
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 KamilaBorowska/3608623 to your computer and use it in GitHub Desktop.
Save KamilaBorowska/3608623 to your computer and use it in GitHub Desktop.
glitchmr@feather ~/SixtySixBot> cat sixtysix.p6
use Net::IRC::Bot;
use Net::IRC::Modules::FromThisPointPrefixIsRequired;
use Net::IRC::Modules::Factoids;
Net::IRC::Bot.new(
debug => True,
nick => 'SixtySixBot',
realname => '66, help me',
server => 'irc.freenode.net',
channels => <#perl66>,
modules => (
Net::IRC::Modules::FromThisPointPrefixIsRequired.new(:prefix(/
^ [ SixtySix | 66 ] [ Bot ]? <[,:]> \s*
/)),
Net::IRC::Modules::Factoids.new(:file<factoids>),
),
).run;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment