Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ibid.ini(5) [debian man page]

IBID.INI(5)						     Ibid - Multi-protocol Bot						       IBID.INI(5)

NAME
ibid.ini - Configuration file for Ibid DESCRIPTION
ibid.ini contains all the configuration for an Ibid bot. A complete description of the contents of this file is out of the scope of this manpage. For more details see the Ibid documentation: http://ibid.omnia.za.net/docs/ Lines beginning with # are considered to be comments and ignored. To use a # symbol in an option (e.g. an IRC channel name), quote the option with double-quotes, e.g. channels="#ibid", This file will be written to by the bot when configuration settings are altered online. It can also be edited manually and a running bot told to "reload config". Manual edits and comments will be preserved when the bot modifies its own configuration, provided that they have not been edited since bot start-up or the last config reload. SECTIONS
auth Settings related to permissions and authentication. Permissions listed in auth.permissions are granted to all users unless revoked by source or account. sources Sources are Ibid connections to an IM service. They range from IRC networks to the bot's built-in HTTP server. Each source is configured in a section named after the source. The source name will define the driver that the source should use, unless a type option is provided. Sources can be disabled by setting disabled=True. plugins Plugin configuration. Each plugin is configured within a section named after the plugin. cachedir The directory that temporary files (such as downloaded data), useful to be the bot but expendable, is stored in. core.autoload If True, all plugins not explicitly ignored will be loaded. (Note that some plugins mark themselves as non-auto-loadable). Defaults to True. core.load The list of plugins (or plugin.Processors) to load. core.noload The list of plugins (or plugin.Processors) to ignore and not load. core.names The names that the bot should respond to. core.ignore Nicks that the bot should completely ignore (e.g. other bots). EXAMPLE
botname = joebot logging = logging.ini [auth] methods = password, timeout = 300 permissions = +factoid, +karma, +sendmemo, +recvmemo, +feeds, +publicresponse [sources] [[telnet]] [[timer]] [[http]] url = http://joebot.example.com [[smtp]] [[pb]] [[atrum]] channels = "#ibid", nick = $botname type = irc auth = hostmask, nickserv server = irc.atrum.org [plugins] cachedir = /tmp/ibid [[core]] names = $botname, bot, ant ignore = , [databases] ibid = sqlite:///ibid.db FILES
logging.ini A standard Python logging.config configuration file describing loggers, handlers, and formatters for log messages. See http://docs.python.org/library/logging.html SEE ALSO
ibid(1), ibid.ini(5), twistd(1), http://ibid.omnia.za.net/ Ibid 0.1 March 2010 IBID.INI(5)

Check Out this Related Man Page

POE::Component::IRC::Plugin::PlugMan(3pm)		User Contributed Perl Documentation		 POE::Component::IRC::Plugin::PlugMan(3pm)

NAME
POE::Component::IRC::Plugin::PlugMan - A PoCo-IRC plugin that provides plugin management services. SYNOPSIS
use strict; use warnings; use POE qw(Component::IRC::State); use POE::Component::IRC::Plugin::PlugMan; my $botowner = 'somebody!*@somehost.com'; my $irc = POE::Component::IRC::State->spawn(); POE::Session->create( package_states => [ main => [ qw(_start irc_plugin_add) ], ], ); sub _start { $irc->yield( register => 'all' ); $irc->plugin_add( 'PlugMan' => POE::Component::IRC::Plugin::PlugMan->new( botowner => $botowner ) ); return; } sub irc_plugin_add { my ($desc, $plugin) = @_[ARG0, ARG1]; if ($desc eq 'PlugMan') { $plugin->load( 'Connector', 'POE::Component::IRC::Plugin::Connector' ); } return; } DESCRIPTION
POE::Component::IRC::Plugin::PlugMan is a POE::Component::IRC plugin management plugin. It provides support for 'on-the-fly' loading, reloading and unloading of plugin modules, via object methods that you can incorporate into your own code and a handy IRC interface. METHODS
"new" Takes two optional arguments: 'botowner', an IRC mask to match against for people issuing commands via the IRC interface; 'auth_sub', a sub reference which will be called to determine if a user may issue commands via the IRC interface. Overrides 'botowner'. It will be called with three arguments: the IRC component object, the nick!user@host and the channel name as arguments. It should return a true value if the user is authorized, a false one otherwise. 'debug', set to a true value to see when stuff goes wrong; Not setting 'botowner' or 'auth_sub' effectively disables the IRC interface. If 'botowner' is specified the plugin checks that it is being loaded into a POE::Component::IRC::State or sub-class and will fail to load otherwise. Returns a plugin object suitable for feeding to POE::Component::IRC's "plugin_add" method. "load" Loads a managed plugin. Takes two mandatory arguments, a plugin descriptor and a plugin package name. Any other arguments are used as options to the loaded plugin constructor. $plugin->load( 'Connector', 'POE::Component::IRC::Plugin::Connector', delay, 120 ); Returns true or false depending on whether the load was successfully or not. "unload" Unloads a managed plugin. Takes one mandatory argument, a plugin descriptor. $plugin->unload( 'Connector' ); Returns true or false depending on whether the unload was successfully or not. "reload" Unloads and loads a managed plugin, with applicable plugin options. Takes one mandatory argument, a plugin descriptor. $plugin->reload( 'Connector' ); "loaded" Takes no arguments. $plugin->loaded(); Returns a list of descriptors of managed plugins. INPUT
An IRC interface is enabled by specifying a "botowner" mask to "new". Commands may be either invoked via a PRIVMSG directly to your bot or in a channel by prefixing the command with the nickname of your bot. One caveat, the parsing of the irc command is very rudimentary (it merely splits the line on spaces). "plugin_add" Takes the same arguments as "load". "plugin_del" Takes the same arguments as "unload". "plugin_reload" Takes the same arguments as "reload". "plugin_loaded" Returns a list of descriptors of managed plugins. "plugin_list" Returns a list of descriptors of *all* plugins loaded into the current PoCo-IRC component. AUTHOR
Chris 'BinGOs' Williams SEE ALSO
POE::Component::IRC::State POE::Component::IRC::Plugin perl v5.14.2 2011-12-07 POE::Component::IRC::Plugin::PlugMan(3pm)
Man Page

Featured Tech Videos