User:HighInBC/MCP/config
Appearance
< User:HighInBC | MCP
This is a configuration file.
open(PASS,'HBC NameWatcherBot credentials/password'); # A file with only the password, no carraige return sysread(PASS, my $NameWatcher_password, -s(PASS)); # No password in sourcecode. close(PASS); open(USER,'HBC NameWatcherBot credentials/username'); # A file with only the username, no carraige return sysread(USER, my $NameWatcher_username, -s(USER)); # close(USER); %plugins = ( 'IRCFeed' => { label => 'IRCFeed', # Monitors the IRC feed and provides hooks for other plugins params => { server => 'irc.wikimedia.org', # The irc server your bot is to reside port => 6667, # The port of above mentioned server bot_name => 'HBC_MCP', # The nick for the bot channels => ['#en.wikipedia'], # The channel(s) to connect to reconnect_delay => 30, # Time to wait after disconnect to reconnect (In Seconds) } }, 'NameWatcher' => # Reads the IRC feeds and reports usernames that match certain patterns { label => 'NameWatcher', params => { irc_label => 'IRCFeed', username => $NameWatcher_username, password => $NameWatcher_password, } }, 'RTCWatcher' => # When listed users make and edit, or listed pages are edited, a diff will instantly open in the browser { label => 'RTCWatcher', params => { irc_label => 'IRCFeed', browser_path => 'C:\\Program Files\\Mozilla Firefox\\firefox.exe', pages => [ 'Wikipedia:No personal attacks', 'User talk:H', 'Wikipedia:Featured picture candidates/British Columbia Parliament Buildings', 'User:H/HBC MCP', ], users => [ 'H', ], } } );