RSS, 'bold', registry.Boolean( True, _("""Determines whether the bot will bold the title of the feed when it announces news."""))) conf.registerChannelValue( RSS, 'headlineSeparator', registry.StringSurroundedBySpaces( '|', _("""Determines what string is used to separate headlines in new feeds."""))) conf.registerChannelValue( RSS, 'announcementPrefix', registry.StringWithSpaceOnRight( _('News from '), _("""Determines what prefix is prepended (if any) to the news item announcements made in the channel."""))) conf.registerChannelValue( RSS, 'announcementSeparator', registry.StringWithSpaceOnRight( _(': '), _("""Determines what suffix is appended to the feed name in a news item."""))) conf.registerChannelValue( RSS, 'announce', registry.SpaceSeparatedSetOfStrings([], _("""Determines which RSS feeds should be announced in the channel; valid input is a list of strings (either registered RSS feeds or RSS feed URLs) separated by spaces."""))) conf.registerGlobalValue(
conf.registerPlugin('Factoids', True) Factoids = conf.registerPlugin('Factoids') conf.registerChannelValue( Factoids, 'learnSeparator', registry.String( 'as', """Determines what separator must be used in the learn command. Defaults to 'as' -- learn <key> as <value>. Users might feel more comfortable with 'is' or something else, so it's configurable.""")) conf.registerChannelValue( Factoids, 'showFactoidIfOnlyOneMatch', registry.Boolean( True, """Determines whether the bot will reply with the single matching factoid if only one factoid matches when using the search command.""")) conf.registerChannelValue( Factoids, 'replyWhenInvalidCommand', registry.Boolean( True, """Determines whether the bot will reply to invalid commands by searching for a factoid; basically making the whatis unnecessary when you want all factoids for a given key.""")) conf.registerChannelValue( Factoids, 'factoidPrefix', registry.StringWithSpaceOnRight( 'could be ', """Determines the string that factoids will be introduced by.""")) # vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79:
_("""This text is inserted between service-status pairs, surrounded by spaces until I find a better way."""))) conf.registerGroup(MCStatus, 'service') conf.registerChannelValue( MCStatus.service, 'prefix', registry.String( '', _("""This text is prepended to each service's name."""))) conf.registerChannelValue( MCStatus.service, 'suffix', registry.StringWithSpaceOnRight( ':', _("""This text is appended to each service's name, followed by a space until I find a better way."""))) conf.registerGroup(MCStatus, 'status') conf.registerChannelValue( MCStatus.status, 'online', registry.NormalizedString( '\x0309ONLINE\x03', _("""This text is displayed when a service is online"""))) conf.registerChannelValue( MCStatus.status, 'offline', registry.NormalizedString( '\x0304OFFLINE\x03',
RSS = conf.registerPlugin('RSS') conf.registerChannelValue( RSS, 'bold', registry.Boolean( True, """Determines whether the bot will bold the title of the feed when it announces new news.""")) conf.registerChannelValue( RSS, 'headlineSeparator', registry.StringSurroundedBySpaces( ' || ', """Determines what string is used to separate headlines in new feeds.""")) conf.registerChannelValue( RSS, 'announcementPrefix', registry.StringWithSpaceOnRight( 'New news from ', """Determines what prefix is prepended (if any) to the new news item announcements made in the channel.""")) conf.registerChannelValue( RSS, 'announce', registry.SpaceSeparatedSetOfStrings([], """Determines which RSS feeds should be announced in the channel; valid input is a list of strings (either registered RSS feeds or RSS feed URLs) separated by spaces.""")) conf.registerGlobalValue( RSS, 'waitPeriod', registry.PositiveInteger( 1800, """Indicates how many seconds the bot will wait between retrieving RSS feeds; requests made within this period will return cached results.""")) conf.registerGlobalValue( RSS, 'feeds', FeedNames([], """Determines what feeds should be accessible as