Settings.php.dist 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php
  2. return array(
  3. // One array per connection, pretty self-explanatory
  4. 'connections' => array(
  5. // Ex: All connection info for the Freenode network
  6. array(
  7. 'host' => 'irc.freenode.net',
  8. 'port' => 6667,
  9. 'username' => 'Elazar',
  10. 'realname' => 'Matthew Turland',
  11. 'nick' => 'Phergie2',
  12. // 'password' => 'password goes here if needed',
  13. // 'transport' => 'ssl', // uncomment to connect using SSL
  14. // 'encoding' => 'UTF8', // uncomment if using UTF8
  15. )
  16. ),
  17. 'processor' => 'async',
  18. 'processor.options' => array('usec' => 200000),
  19. // Time zone. See: http://www.php.net/manual/en/timezones.php
  20. 'timezone' => 'UTC',
  21. // Whitelist of plugins to load
  22. 'plugins' => array(
  23. // To enable a plugin, simply add a string to this array containing
  24. // the short name of the plugin as shown below.
  25. // 'ShortPluginName',
  26. // Below is an example of enabling the AutoJoin plugin, for which
  27. // the corresponding PEAR package is Phergie_Plugin_AutoJoin. This
  28. // plugin allows you to set a list of channels in this configuration
  29. // file that the bot will automatically join when it connects to a
  30. // server. If you'd like to enable this plugin, simply install it,
  31. // uncomment the line below, and set a value for the setting
  32. // autojoin.channels (examples for which are located further down in
  33. // this file).
  34. // 'AutoJoin',
  35. // A few other recommended plugins:
  36. // Servers randomly send PING events to clients to ensure that
  37. // they're still connected and will eventually terminate the
  38. // connection if a PONG response is not received. The Pong plugin
  39. // handles sending these responses.
  40. // 'Pong',
  41. // It's sometimes difficult to distinguish between a lack of
  42. // activity on a server and the client not receiving data even
  43. // though a connection remains open. The Ping plugin performs a self
  44. // CTCP PING sporadically to ensure that its connection is still
  45. // functioning and, if not, terminates the bot.
  46. // 'Ping',
  47. // Sometimes it's desirable to have the bot disconnect gracefully
  48. // when issued a command to do so via a PRIVMSG event. The Quit
  49. // plugin implements this using the Command plugin to intercept the
  50. // command.
  51. // 'Quit',
  52. ),
  53. // If set to true, this allows any plugin dependencies for plugins
  54. // listed in the 'plugins' option to be loaded even if they are not
  55. // explicitly included in that list
  56. 'plugins.autoload' => true,
  57. // Enables shell output describing bot events via Phergie_Ui_Console
  58. 'ui.enabled' => true,
  59. // Examples of supported values for autojoins.channel:
  60. // 'autojoin.channels' => '#channel1,#channel2',
  61. // 'autojoin.channels' => array('#channel1', '#channel2'),
  62. // 'autojoin.channels' => array(
  63. // 'host1' => '#channel1,#channel2',
  64. // 'host2' => array('#channel3', '#channel4')
  65. // ),
  66. // Examples of setting values for Ping plugin settings
  67. // This is the amount of time in seconds that the Ping plugin will wait
  68. // to receive an event from the server before it initiates a self-ping
  69. // 'ping.event' => 300, // 5 minutes
  70. // This is the amount of time in seconds that the Ping plugin will wait
  71. // following a self-ping attempt before it assumes that a response will
  72. // never be received and terminates the connection
  73. // 'ping.ping' => 10, // 10 seconds
  74. );