config.py 923 B

123456789101112131415161718192021222324252627
  1. import supybot.conf as conf
  2. import supybot.registry as registry
  3. def configure(advanced):
  4. conf.registerPlugin('Greet', True)
  5. Greet = conf.registerPlugin('Greet')
  6. conf.registerChannelValue(
  7. Greet,
  8. 'enable',
  9. registry.Boolean(False, """Determines whether or not the bot will send the
  10. configured greeting (defined by
  11. supybot.plugins.Greet.message) when someone joins
  12. the channel."""))
  13. conf.registerChannelValue(
  14. Greet,
  15. 'message',
  16. registry.String('', """The greeting that is sent to someone when they join
  17. the channel."""))
  18. conf.registerChannelValue(
  19. Greet,
  20. 'grace',
  21. registry.PositiveInteger(30, """The length of the grace period (in seconds)
  22. for not re-greeting someone after a kick,
  23. join, or part event."""))