Merge lp:~stefanor/ibid/manpages-510020 into lp:~ibid-core/ibid/old-trunk-1.6

Proposed by Stefano Rivera
Status: Merged
Approved by: Stefano Rivera
Approved revision: not available
Merged at revision: 852
Proposed branch: lp:~stefanor/ibid/manpages-510020
Merge into: lp:~ibid-core/ibid/old-trunk-1.6
Diff against target: 732 lines (+572/-10)
16 files modified
man/ibid-db.1 (+59/-0)
man/ibid-factpack.1 (+63/-0)
man/ibid-knab-import.1 (+44/-0)
man/ibid-memgraph.1 (+39/-0)
man/ibid-objgraph.1 (+50/-0)
man/ibid-pb-client.1 (+54/-0)
man/ibid-plugin.1 (+66/-0)
man/ibid-setup.1 (+33/-0)
man/ibid.1 (+32/-0)
man/ibid.ini.5 (+113/-0)
scripts/ibid (+0/-1)
scripts/ibid-db (+6/-2)
scripts/ibid-factpack (+3/-1)
scripts/ibid-knab-import (+4/-2)
scripts/ibid-pb-client (+4/-2)
setup.py (+2/-2)
To merge this branch: bzr merge lp:~stefanor/ibid/manpages-510020
Reviewer Review Type Date Requested Status
marcog (community) Approve
Max Rabkin Approve
Jonathan Hitchcock Approve
Review via email: mp+17928@code.launchpad.net
To post a comment you must log in.
lp:~stefanor/ibid/manpages-510020 updated
875. By Stefano Rivera

Rename ibid-pub-client in setup.py

Revision history for this message
Jonathan Hitchcock (vhata) wrote :

All seems good.

I would change the description to "multi-protocol, easily extensible bot written in python" and not use it so much in the actual manpages themselves (it becomes a $phrase that sounds silly).

Also, the knab import script should reference knab.

Otherwise, seems fine - we really just need to get this stuff in...

review: Approve
lp:~stefanor/ibid/manpages-510020 updated
876. By Stefano Rivera

See also Knab's URL for knab-import

877. By Stefano Rivera

Reword Ibid description

878. By Stefano Rivera

e.g., not i.e.

879. By Stefano Rivera

Typos, spotted by Max

Revision history for this message
Max Rabkin (max-rabkin) :
review: Approve
Revision history for this message
marcog (marco-gallotta) wrote :

Most comments here are pedantic, so ignore them if you feel like it. :)

> There should there be an existing ibid.ini in the current directory, or one should be
> provided on the command line.

Can ibid.ini not be located in /etc ?

> Note that you should use twistd(1) where possible instead of calling this directly,
> as certain classes of error (problems in twisted callbacks) will go unnoticed in this
> program. That has no harmful effects, but the developers may miss out on some good
> bug reports.

Should this really be under "BUGS"?

How about adding that this can be achieved by running "twistd -n ibid"?

> SEE ALSO
> ibid(1), ibid.ini(5), ibid-setup(1), http://ibid.omnia.za.net/

This is in ibid.1. Should it really be referencing what I believe is itself?

> A complete description of the contents of this file is out of the scope of this man‐
> page, for more details see the Ibid documentation.

Break up into 2 sentences.

> 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".

Maybe mention that when automatically written to, the bot will preserve manual edits.

Weren't there some bugs associated with "reload config" not fully working? Perhaps mention them under a BUGS section.

> Settings related to permissions and authentication. Permissions listed in auth.per‐
> missions are granted to all users unless revoked by source or account.

I don't like how tha man page splits auth.permissions over multiple lines. Is there a way to force it to keep it on a single line?

> Plugin configuration, each plugin is configured within a section named after the plu‐
> gin.

I don't like that comma. Maybe a colon? There are also other places where this occurs.

> SEE ALSO
> ibid(1), ibid-objgraph(1), http://ibid.omnia.za.net/

This is in ibid-objgraph.1. I guess that ibid-objgraph(1) should have been ibid-memgraph(1)

> This utility is passing events to a running Ibid bot, or executing RPC-exposed func‐
> tions remotely.

This utility is *for* passing

> ibid-plugin.1 BUGS

It also doesn't emulate accounts/identities.

> ibid-setup - Create a configuration file and Database for an Ibid bot

Create a *basic* configuration file and *d*atabase as a starting point for an Ibid bot

> This program installs a new Ibid bot.

Does it really *install* the bot? When I read install, I think it does more than what this script does. Maybe "configures"?

review: Needs Fixing
Revision history for this message
Stefano Rivera (stefanor) wrote :

> Can ibid.ini not be located in /etc ?

If you have a single machine-wide Ibid, yes it can. However that's more of a packaging question. At the moment, we aren't doing anything about that kind of thing.
See http://svn.debian.org/viewsvn/python-apps/packages/ibid/trunk/debian/README.Debian?view=markup

> Should this really be under "BUGS"?

Well, it is a bug that it misses those massages, yes. I could rephrase it to say that. r880

> How about adding that this can be achieved by running "twistd -n ibid"?

Yeah. r880

> > ibid(1), ibid.ini(5), ibid-setup(1), http://ibid.omnia.za.net/
> This is in ibid.1. Should it really be referencing what I believe is itself?

Correct. r881

> > A complete description of the contents of this file is out of the scope of
> > this man‐page, for more details see the Ibid documentation.
> Break up into 2 sentences.

Done. r882

> Maybe mention that when automatically written to, the bot will preserve manual
> edits.

r883

> Weren't there some bugs associated with "reload config" not fully working?
> Perhaps mention them under a BUGS section.

No, I think they were fixed.

> I don't like how tha man page splits auth.permissions over multiple lines. Is
> there a way to force it to keep it on a single line?

Yes, one can tell it not to hyphenate specific words. File a bug for 0.2, if you want ot do that to all of them :)

> > Plugin configuration, each plugin is configured within a section named after
> I don't like that comma. Maybe a colon? There are also other places where this
> occurs.

r884

> > SEE ALSO
> > ibid(1), ibid-objgraph(1), http://ibid.omnia.za.net/
> This is in ibid-objgraph.1. I guess that ibid-objgraph(1) should have been
> ibid-memgraph(1)

r885

> > This utility is passing events to a running Ibid bot, or executing RPC-
> exposed functions remotely.
> This utility is *for* passing

r886

> > ibid-plugin.1 BUGS
> It also doesn't emulate accounts/identities.

Well spotted. r887

> > ibid-setup - Create a configuration file and Database for an Ibid bot
> Create a *basic* configuration file and *d*atabase as a starting point for an
> Ibid bot

Not mad about "starting point". r888

> > This program installs a new Ibid bot.
> Does it really *install* the bot? When I read install, I think it does more
> than what this script does. Maybe "configures"?

r889

lp:~stefanor/ibid/manpages-510020 updated
880. By Stefano Rivera

Rework the BUGS in ibid.1

881. By Stefano Rivera

ibid.1 refers to itself, it should rather refer to ibid-setup.1

882. By Stefano Rivera

Break up first section of ibid.ini.5 and link to Ibid documentation

883. By Stefano Rivera

Explain config file writing in relation to comments

884. By Stefano Rivera

s/,/./

885. By Stefano Rivera

Refer to ibid-memgraph from ibid-objgraph, not itself

886. By Stefano Rivera

Missing 'for' in ibid-pb-client.1

887. By Stefano Rivera

ibid-plugin grants user all permissions

888. By Stefano Rivera

Clarify one-liner for ibid-setup

889. By Stefano Rivera

Don't say ibid-setup installs

Revision history for this message
marcog (marco-gallotta) wrote :

Looks good

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added directory 'man'
=== added file 'man/ibid-db.1'
--- man/ibid-db.1 1970-01-01 00:00:00 +0000
+++ man/ibid-db.1 2010-01-24 14:59:10 +0000
@@ -0,0 +1,59 @@
1.\" Copyright (c) 2010, Stefano Rivera
2.\" Released under terms of the MIT/X/Expat Licence. See COPYING for details.
3.TH IBID-DB "1" "January 2010" "Ibid 0.0" "Ibid - Multi-protocol Bot"
4.SH NAME
5ibid-db \- Database management utility for Ibid
6.SH SYNOPSIS
7.B ibid-db command
8.RI [ options ...]
9.SH DESCRIPTION
10This utility is for offline management of your Ibid bot's database.
11Used for import, export, and upgrades.
12.P
13The export format is DBMS-agnostic and can be used to migrate between different
14databases.
15.SH COMMANDS
16.TP
17\fB\-e\fR \fIFILE\fR, \fB\-\-export\fR=\fIFILE\fR
18Export DB contents to \fIFILE\fR.
19Export format is JSON.
20.IP
21FILE can be \fB\-\fR for stdin/stdout or can end in \fB.gz\fR for automatic
22gzip compression.
23.TP
24\fB\-i\fR \fIFILE\fR, \fB\-\-import\fR=\fIFILE\fR
25Import DB contents from \fIFILE\fR as exported by this utility.
26.IP
27FILE can be \fB\-\fR for stdin/stdout or can end in \fB.gz\fR for automatic
28gzip compression.
29.IP
30.B Note:
31The DB must be empty first.
32.TP
33\fB\-u\fR, \fB\-\-upgrade\fR
34Upgrade DB schema to the latest version.
35You need to run this after upgrading your bot.
36.IP
37.B Note:
38You should backup first.
39.SH OPTIONS
40.TP
41\fB\-\-version\fR
42Show the program's version and exit.
43.TP
44\fB\-h\fR, \fB\-\-help\fR
45Show a help message and exit.
46.TP
47\fB\-v\fR, \fB\-\-verbose\fR
48Turn on debugging output to stderr.
49.SH FILES
50.TP
51.I ibid.ini
52Locates the database to act upon by looking for the \fB[databases].ibid\fR value
53in the bot configuration file in the current directory.
54.SH SEE ALSO
55.BR ibid (1),
56.BR ibid.ini (5),
57.BR ibid-setup (1),
58.UR http://ibid.omnia.za.net/
59.BR http://ibid.omnia.za.net/
060
=== added file 'man/ibid-factpack.1'
--- man/ibid-factpack.1 1970-01-01 00:00:00 +0000
+++ man/ibid-factpack.1 2010-01-24 14:59:10 +0000
@@ -0,0 +1,63 @@
1.\" Copyright (c) 2010, Stefano Rivera
2.\" Released under terms of the MIT/X/Expat Licence. See COPYING for details.
3.TH IBID-FACTPACK "1" "January 2010" "Ibid 0.0" "Ibid - Multi-protocol Bot"
4.SH NAME
5ibid-factpack \- Factoid-package management utility for Ibid
6.SH SYNOPSIS
7.B ibid-factpack
8.RB [ -s ]
9.I factpack-file
10.br
11.B ibid-factpack -r
12.RB [ -f ]
13.I factpack-name
14.br
15.B ibid-factpack -h
16.SH DESCRIPTION
17This utility is for adding and removing sets of packaged factoids, known as
18factpacks, from your Ibid's factoid database.
19.P
20The default mode is factpack loading.
21The \fIfactpack-file\fR specified is loaded into the bot's database.
22Should the pack contain any facts with the same name as an existing fact in the
23bot's database, loading will be aborted, unless the \fB-s\fR option is
24supplied.
25.P
26When invoked with the \fB-r\fR option, the named factpack (original import
27filename minus the extension) will be removed from the bot.
28If any of the facts contained in that pack were modified while loaded in the
29bot, unloading will be aborted, unless the \fB-f\fR option is supplied.
30.SH OPTIONS
31.TP
32\fB\-r\fR, \fB\-\-remove\fR
33Remove the named factpack, rather than importing.
34.TP
35\fB\-f\fR, \fB\-\-force\fR
36Force removal, if facts in the factpack were modified by users.
37.TP
38\fB\-s\fR, \fB\-\-skip\fR
39Skip facts that clash with existing factoids, during import.
40.TP
41\fB\-h\fR, \fB\-\-help\fR
42Show a help message and exit.
43.SH FACTPACKS
44Factpacks are JSON-encoded text files containing a list of facts.
45Each fact is a tuple of two lists: fact-names, fact-values.
46The same substitutions are available as in normal online Factoids.
47.SS Example:
48.nf
49[
50 [["Hello", "Hi"], ["<reply> Hi There", "<action> waves"]],
51 [["Bye"], ["<reply> kbye $who", "<reply> Cheers"]]
52]
53.fi
54.SH FILES
55.TP
56.I ibid.ini
57Locates the database to act upon by looking for the \fB[databases].ibid\fR value
58in the bot configuration file in the current directory.
59.SH SEE ALSO
60.BR ibid (1),
61.BR ibid.ini (5),
62.UR http://ibid.omnia.za.net/
63.BR http://ibid.omnia.za.net/
064
=== added file 'man/ibid-knab-import.1'
--- man/ibid-knab-import.1 1970-01-01 00:00:00 +0000
+++ man/ibid-knab-import.1 2010-01-24 14:59:10 +0000
@@ -0,0 +1,44 @@
1.\" Copyright (c) 2010, Stefano Rivera
2.\" Released under terms of the MIT/X/Expat Licence. See COPYING for details.
3.TH IBID-DB "1" "January 2010" "Ibid 0.0" "Ibid - Multi-protocol Bot"
4.SH NAME
5ibid-knab-import \- Knab->Ibid Import utility
6.SH SYNOPSIS
7.B ibid-knab-import
8.I knab-sa-url
9.I source
10.RI [ config-file ]
11.SH DESCRIPTION
12This utility imports users, last seen information, factoids, and URLs
13from a Knab bot's database into an Ibid.
14.P
15For best results, import directly into a brand new, clean Ibid install.
16.P
17On import, strings are converted to Unicode, guessing UTF-8 and falling back to
18detection.
19.SH OPTIONS
20.TP
21.I knab-sa-url
22The SQLAlchemy URI for the Knab's database.
23The format is
24.BI mysql:// user : pass @ hostname / dbname
25.TP
26.I source
27The name in the Ibid bot for the source that the Knab was previously connected to.
28.TP
29.I config-file
30If supplied, this is configuration file is used for locating the Ibid's
31database rather than \fBibid.ini\fR.
32.SH FILES
33.TP
34.I ibid.ini
35Locates the database to act upon by looking for the \fB[databases].ibid\fR value
36in the bot configuration file in the current directory.
37.SH SEE ALSO
38.BR ibid (1),
39.BR ibid.ini (5),
40.BR ibid-setup (1),
41.UR http://ibid.omnia.za.net/
42.BR http://ibid.omnia.za.net/ ,
43.UR http://knab.omnia.za.net/
44.BR http://knab.omnia.za.net/
045
=== added file 'man/ibid-memgraph.1'
--- man/ibid-memgraph.1 1970-01-01 00:00:00 +0000
+++ man/ibid-memgraph.1 2010-01-24 14:59:10 +0000
@@ -0,0 +1,39 @@
1.\" Copyright (c) 2010, Stefano Rivera
2.\" Released under terms of the MIT/X/Expat Licence. See COPYING for details.
3.TH IBID-MEMGRAPH "1" "January 2010" "Ibid 0.0" "Ibid - Multi-protocol Bot"
4.SH NAME
5ibid-memgraph \- Memory usage graph generation utility for Ibid
6.SH SYNOPSIS
7.B ibid-memgraph
8.RB [ options ...]
9.I logfile
10.br
11.B ibid-memgraph -h
12.SH DESCRIPTION
13This utility is for graphing memory usage from an Ibid bot configured to
14log such usage.
15.P
16Matplotlib is required for graphing.
17.SH OPTIONS
18.TP
19\fB\-o\fR \fIFILE\fR, \fB\-\-output\fR=\fIFILE\fR
20Output to \fIFILE\fR instead of displaying interactive graph GUI.
21\fIFILE\fR can be any format supported by Matplotlib, detected by the file
22extension.
23.TP
24\fB\-d\fR \fIDPI\fR, \fB\-\-dpi\fR=\fIDPI\fR
25When outputting in raster formats, use \fIDPI\fR output DPI.
26.TP
27\fB\-h\fR, \fB\-\-help\fR
28Show a help message and exit.
29.SH FILES
30.TP
31.I logfile
32A log file generated by loading the \fBmemory\fR plugin into Ibid, which will
33periodically log memory usage.
34It can be gzip compressed, if the filename ends in \fB.gz\fR.
35.SH SEE ALSO
36.BR ibid (1),
37.BR ibid-objgraph (1),
38.UR http://ibid.omnia.za.net/
39.BR http://ibid.omnia.za.net/
040
=== added file 'man/ibid-objgraph.1'
--- man/ibid-objgraph.1 1970-01-01 00:00:00 +0000
+++ man/ibid-objgraph.1 2010-01-24 14:59:10 +0000
@@ -0,0 +1,50 @@
1.\" Copyright (c) 2010, Stefano Rivera
2.\" Released under terms of the MIT/X/Expat Licence. See COPYING for details.
3.TH IBID-OBJGRAPH "1" "January 2010" "Ibid 0.0" "Ibid - Multi-protocol Bot"
4.SH NAME
5ibid-objgraph \- Memory usage graph generation utility for Ibid
6.SH SYNOPSIS
7.B ibid-objgraph
8.RB [ options ...]
9.IR "logfile type" ...
10.br
11.B ibid-objgraph
12.BI "-e " TIME
13.RB [ options ...]
14.I logfile
15.br
16.B ibid-objgraph -h
17.SH DESCRIPTION
18This utility is for graphing object-type usage from an Ibid bot
19configured to log such usage.
20.P
21Matplotlib is required for graphing.
22.SH OPTIONS
23.TP
24\fB\-e\fR \fITIME\fR, \fB\-\-examine\fR=\fITIME\fR
25Examine the object usage at time \fITIME\fR, and print a sorted list of type
26statistics at that time.
27This function can be useful in determining which types to graph, when chasing
28down a detected leak.
29.TP
30\fB\-o\fR \fIFILE\fR, \fB\-\-output\fR=\fIFILE\fR
31Output to \fIFILE\fR instead of displaying interactive graph GUI.
32\fIFILE\fR can be any format supported by Matplotlib, detected by the file
33extension.
34.TP
35\fB\-d\fR \fIDPI\fR, \fB\-\-dpi\fR=\fIDPI\fR
36When outputting in raster formats, use \fIDPI\fR output DPI.
37.TP
38\fB\-h\fR, \fB\-\-help\fR
39Show a help message and exit.
40.SH FILES
41.TP
42.I logfile
43A log file generated by loading the \fBmemory\fR plugin into Ibid, which will
44periodically log object usage.
45It can be gzip compressed, if the filename ends in \fB.gz\fR.
46.SH SEE ALSO
47.BR ibid (1),
48.BR ibid-memgraph (1),
49.UR http://ibid.omnia.za.net/
50.BR http://ibid.omnia.za.net/
051
=== added file 'man/ibid-pb-client.1'
--- man/ibid-pb-client.1 1970-01-01 00:00:00 +0000
+++ man/ibid-pb-client.1 2010-01-24 14:59:10 +0000
@@ -0,0 +1,54 @@
1.\" Copyright (c) 2010, Stefano Rivera
2.\" Released under terms of the MIT/X/Expat Licence. See COPYING for details.
3.TH IBID-PB-CLIENT "1" "January 2010" "Ibid 0.0" "Ibid - Multi-protocol Bot"
4.SH NAME
5ibid-pb-client \- RPC Client for Ibid
6.SH SYNOPSIS
7.B ibid-pb-client
8.RI [ options ...]
9.BI message " message"
10.br
11.B ibid-pb-client
12.RI [ options ...]
13.BI plugin " feature method"
14.RI [ parameter ...]
15.br
16.B ibid-pb-client -h
17.SH DESCRIPTION
18This utility is for passing events to a running Ibid bot, or executing
19RPC-exposed functions remotely.
20.P
21It communicates with the \fBpb\fR source on the Ibid.
22.P
23.I message
24is a text message as could be sent to the bot by an IM source.
25The message is processed normally by the bot.
26.P
27.I feature
28is the name of the feature to invoke exposed method \fImethod\fR on,
29directly.
30.IR parameter s
31are passed directly to the method.
32They can be specified positionally or by key, using the same syntax as
33Python:
34.IR key = value .
35They may be encoded in JSON, if not valid JSON they will be treated as
36strings.
37.P
38The output is a JSON-encoded response.
39.SH OPTIONS
40.TP
41\fB\-s\fR \fIHOSTNAME\fR, \fB\-\-server\fR=\fISERVER\fR
42Connect to the Ibid running on \fISERVER\fR, by default it connects to
43\fIlocalhost\fR.
44.TP
45\fB\-p\fR \fIFILE\fR, \fB\-\-port\fR=\fIPORT\fR
46Connect to the \fBpb\fR source running on port \fIPORT\fR, by default
478789.
48.TP
49\fB\-h\fR, \fB\-\-help\fR
50Show a help message and exit.
51.SH SEE ALSO
52.BR ibid (1),
53.UR http://ibid.omnia.za.net/
54.BR http://ibid.omnia.za.net/
055
=== added file 'man/ibid-plugin.1'
--- man/ibid-plugin.1 1970-01-01 00:00:00 +0000
+++ man/ibid-plugin.1 2010-01-24 14:59:10 +0000
@@ -0,0 +1,66 @@
1.\" Copyright (c) 2010, Stefano Rivera
2.\" Released under terms of the MIT/X/Expat Licence. See COPYING for details.
3.TH IBID-PLUGIN "1" "January 2010" "Ibid 0.0" "Ibid - Multi-protocol Bot"
4.SH NAME
5ibid-plugin \- Plugin testing developer environment for Ibid
6.SH SYNOPSIS
7.B ibid-plugin
8.RI [ options ...]
9.RI [ plugin\fR[\fB- ]| plugin\fB.\fIProcessor [\fB-\fR]...]
10.SH DESCRIPTION
11This utility is for testing Ibid plugins without the full bot
12environment.
13This means testing can be performed offline and without loading all the
14available plugins.
15.P
16This should be run in a configured Ibid bot directory.
17.P
18All the listed plugins and Processors will be loaded on start-up.
19Naming a plugin loads the complete plugin.
20Suffixing a \fB-\fR to the name, ignores that plugin or Processor
21instead of loading it.
22.SH OPTIONS
23.TP
24\fB\-c\fR, \fB\-\-configured\fR
25Load all configured plugins, instead of only the core and requested
26plugins.
27.TP
28\fB\-o\fR, \fB\-\-only\fR
29Don't load the Ibid core plugins, only the plugins requested.
30Note that without the \fBcore\fR plugin to pre- and post-process events,
31most other plugins won't function correctly.
32.TP
33\fB\-p\fR, \fB\-\-public\fR
34By default, \fBibid-plugin\fR emulates a private conversation with the
35bot.
36With this option, the conversation is considered to be public.
37.TP
38\fB\-h\fR, \fB\-\-help\fR
39Show a help message and exit.
40.SH FILES
41.TP
42.I ibid.ini
43Locates the database to act upon by looking for the \fB[databases].ibid\fR value
44in the bot configuration file in the current directory.
45.SH BUGS
46\fBibid-plugin\fR doesn't emulate a complete Ibid environment, and will
47ignore all of the following:
48.TP
49*
50Delayed and periodically executed functions.
51.TP
52*
53Messages to alternate sources.
54.TP
55*
56Messages directly dispatched, rather than added to responses.
57.TP
58*
59Permissions.
60All permissions are granted to the user.
61.SH SEE ALSO
62.BR ibid (1),
63.BR ibid.ini (5),
64.BR ibid-setup (1),
65.UR http://ibid.omnia.za.net/
66.BR http://ibid.omnia.za.net/
067
=== added file 'man/ibid-setup.1'
--- man/ibid-setup.1 1970-01-01 00:00:00 +0000
+++ man/ibid-setup.1 2010-01-24 14:59:10 +0000
@@ -0,0 +1,33 @@
1.\" Copyright (c) 2010, Stefano Rivera
2.\" Released under terms of the MIT/X/Expat Licence. See COPYING for details.
3.TH IBID-SETUP "1" "January 2010" "Ibid 0.0" "Ibid - Multi-protocol Bot"
4.SH NAME
5ibid-setup \- Create a basic configuration file and database for an Ibid
6bot
7.SH SYNOPSIS
8.B ibid-setup
9.SH DESCRIPTION
10This program sets up everything that a new Ibid bot needs before it can
11run.
12It asks a series of questions about the new bot, and writes out a basic
13configuration file -
14.BR ibid.ini (5)
15- to the current directory.
16It also creates a database for the bot, by default a SQLite database in
17the current directory.
18.P
19This should be run in the directory which will become the new Ibid bot's
20base.
21.P
22Should there be an existing \fBibid.ini\fR in the current directory, it
23will be used, and the only questions asked will be for adding an
24administrative user. These can safely be skipped with a \fB^C\fR.
25.SH FILES
26.TP
27.I ibid.ini
28The Ibid bot's configuration file, will be created if it doesn't exist.
29.SH SEE ALSO
30.BR ibid (1),
31.BR ibid.ini (5),
32.UR http://ibid.omnia.za.net/
33.BR http://ibid.omnia.za.net/
034
=== added file 'man/ibid.1'
--- man/ibid.1 1970-01-01 00:00:00 +0000
+++ man/ibid.1 2010-01-24 14:59:10 +0000
@@ -0,0 +1,32 @@
1.\" Copyright (c) 2010, Stefano Rivera
2.\" Released under terms of the MIT/X/Expat Licence. See COPYING for details.
3.TH IBID "1" "January 2010" "Ibid 0.0" "Ibid - Multi-protocol Bot"
4.SH NAME
5ibid \- Run an Ibid bot
6.SH SYNOPSIS
7.B ibid
8.RI [ config-file ]
9.SH DESCRIPTION
10This runs an Ibid bot in the foreground.
11.P
12There should there be an existing \fBibid.ini\fR (created by
13.BR ibid-setup (1))
14in the current directory or one should be provided on the command line.
15.P
16Where possible, you should run \fBtwistd -n ibid\fR instead of this
17program, as otherwise some classes of errors go unreported.
18.RB "See " BUGS .
19.SH BUGS
20Exceptions in twisted callbacks can go unnoticed in this program.
21That has no harmful effects, but the developers may miss out on some
22good bug reports.
23.SH FILES
24.TP
25.I ibid.ini
26The Ibid bot's configuration file, will be created if it doesn't exist.
27.SH SEE ALSO
28.BR ibid.ini (5),
29.BR ibid-setup (1),
30.BR twistd (1),
31.UR http://ibid.omnia.za.net/
32.BR http://ibid.omnia.za.net/
033
=== added file 'man/ibid.ini.5'
--- man/ibid.ini.5 1970-01-01 00:00:00 +0000
+++ man/ibid.ini.5 2010-01-24 14:59:10 +0000
@@ -0,0 +1,113 @@
1.\" Copyright (c) 2010, Stefano Rivera
2.\" Released under terms of the MIT/X/Expat Licence. See COPYING for details.
3.TH IBID.INI "5" "January 2010" "Ibid 0.0" "Ibid - Multi-protocol Bot"
4.SH NAME
5ibid.ini \- Configuration file for Ibid
6.SH DESCRIPTION
7ibid.ini contains all the configuration for an Ibid bot.
8.P
9A complete description of the contents of this file is out of the scope of this
10manpage.
11For more details see the Ibid documentation:
12.UR http://ibid.omnia.za.net/docs/
13.BR http://ibid.omnia.za.net/docs/
14.P
15Lines beginning with \fB#\fR are considered to be comments and ignored.
16To use a \fB#\fR symbol in an option (e.g. an IRC channel name), quote the
17option with double-quotes, e.g.
18.BR channels = """#ibid"","
19.P
20This file will be written to by the bot when configuration settings are
21altered online.
22It can also be edited manually and a running bot told to
23\fB"reload config"\fR.
24Manual edits and comments will be preserved when the bot modifies its
25own configuration, provided that they have not been edited since bot
26start-up or the last config reload.
27.SH SECTIONS
28.SS auth
29Settings related to permissions and authentication.
30Permissions listed in \fBauth.permissions\fR are granted to all users unless
31revoked by source or account.
32.SS sources
33Sources are Ibid connections to an IM service.
34They range from IRC networks to the bot's built-in HTTP server.
35.P
36Each source is configured in a section named after the source.
37The source name will define the driver that the source should use, unless a
38\fBtype\fR option is provided.
39.P
40Sources can be disabled by setting
41.BR disabled = True .
42.SS plugins
43Plugin configuration.
44Each plugin is configured within a section named after the plugin.
45.P
46.TP
47.B cachedir
48The directory that temporary files (such as downloaded data), useful to be the
49bot but expendable, is stored in.
50.TP
51.B core.autoload
52If \fBTrue\fR, all plugins not explicitly ignored will be loaded.
53(Note that some plugins mark themselves as non-auto-loadable).
54Defaults to \fBTrue\fR.
55.TP
56.B core.load
57The list of plugins (or \fBplugin\fR.\fBProcessor\fRs) to load.
58.TP
59.B core.noload
60The list of plugins (or \fBplugin\fR.\fBProcessor\fRs) to ignore and not load.
61.TP
62.B core.names
63The names that the bot should respond to.
64.TP
65.B core.ignore
66Nicks that the bot should completely ignore (e.g. other bots).
67.SH EXAMPLE
68.nf
69botname = joebot
70logging = logging.ini
71
72[auth]
73 methods = password,
74 timeout = 300
75 permissions = +factoid, +karma, +sendmemo, +recvmemo, +feeds, +publicresponse
76
77[sources]
78 [[telnet]]
79 [[timer]]
80 [[http]]
81 url = http://joebot.example.com
82 [[smtp]]
83 [[pb]]
84 [[atrum]]
85 channels = "#ibid",
86 nick = $botname
87 type = irc
88 auth = hostmask, nickserv
89 server = irc.atrum.org
90
91[plugins]
92 cachedir = /tmp/ibid
93 [[core]]
94 names = $botname, bot, ant
95 ignore = ,
96
97[databases]
98 ibid = sqlite:///ibid.db
99.fi
100.SH FILES
101.TP
102.I logging.ini
103A standard Python \fBlogging.config\fR configuration file describing
104loggers, handlers, and formatters for log messages.
105See
106.UR http://docs.python.org/library/logging.html
107.BR http://docs.python.org/library/logging.html
108.SH SEE ALSO
109.BR ibid (1),
110.BR ibid.ini (5),
111.BR twistd (1),
112.UR http://ibid.omnia.za.net/
113.BR http://ibid.omnia.za.net/
0114
=== modified file 'scripts/ibid'
--- scripts/ibid 2010-01-17 20:08:12 +0000
+++ scripts/ibid 2010-01-24 14:59:10 +0000
@@ -8,7 +8,6 @@
8import ibid8import ibid
99
10parser = OptionParser(usage='%prog [options] <config filename>')10parser = OptionParser(usage='%prog [options] <config filename>')
11parser.add_option('-d', '--debug', dest='debug', action='store_true', help='Output debug messages')
12options, args = parser.parse_args(values={})11options, args = parser.parse_args(values={})
1312
14options['config'] = len(args) > 0 and args[0] or 'ibid.ini'13options['config'] = len(args) > 0 and args[0] or 'ibid.ini'
1514
=== modified file 'scripts/ibid-db'
--- scripts/ibid-db 2010-01-17 20:08:12 +0000
+++ scripts/ibid-db 2010-01-24 14:59:10 +0000
@@ -22,10 +22,14 @@
22from ibid.db.types import IbidUnicode, IbidUnicodeText22from ibid.db.types import IbidUnicode, IbidUnicodeText
23from ibid.utils import ibid_version23from ibid.utils import ibid_version
2424
25version = ibid_version() or "bzr"
26
25parser = OptionParser(usage='%prog [options...]', description=27parser = OptionParser(usage='%prog [options...]', description=
26"""Ibid Database management tool. Used for import, export, and upgrades.28"""Ibid Database management tool. Used for import, export, and upgrades.
27Export format is JSON. FILE can be - for stdin/stdout or can end29Export format is JSON. FILE can be - for stdin/stdout or can end
28in .gz for automatic Gzip compression.""")30in .gz for automatic Gzip compression.""",
31version=("%prog " + version))
32
29commands = OptionGroup(parser, 'Modes')33commands = OptionGroup(parser, 'Modes')
30commands.add_option('-e', '--export', dest='export', metavar='FILE',34commands.add_option('-e', '--export', dest='export', metavar='FILE',
31 help='Export DB contents to FILE.')35 help='Export DB contents to FILE.')
@@ -102,7 +106,7 @@
102106
103 output.write(('# Ibid %(version)s Database dump for %(botname)s '107 output.write(('# Ibid %(version)s Database dump for %(botname)s '
104 'made on %(date)s\n') % {108 'made on %(date)s\n') % {
105 'version': ibid_version() or 'bzr',109 'version': version,
106 'botname': ibid.config['botname'],110 'botname': ibid.config['botname'],
107 'date': datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%SZ'),111 'date': datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%SZ'),
108 })112 })
109113
=== modified file 'scripts/ibid-factpack'
--- scripts/ibid-factpack 2010-01-17 20:08:12 +0000
+++ scripts/ibid-factpack 2010-01-24 14:59:10 +0000
@@ -2,10 +2,12 @@
2# Copyright (c) 2009-2010, Michael Gorven, Stefano Rivera2# Copyright (c) 2009-2010, Michael Gorven, Stefano Rivera
3# Released under terms of the MIT/X/Expat Licence. See COPYING for details.3# Released under terms of the MIT/X/Expat Licence. See COPYING for details.
44
5from sys import exit, stderr5from sys import exit, stderr, path
6from os.path import basename, exists6from os.path import basename, exists
7from optparse import OptionParser7from optparse import OptionParser
88
9path.insert(0, '.')
10
9import ibid11import ibid
10from ibid.compat import json12from ibid.compat import json
11from ibid.config import FileConfig13from ibid.config import FileConfig
1214
=== renamed file 'scripts/ibid_import' => 'scripts/ibid-knab-import'
--- scripts/ibid_import 2010-01-18 22:13:23 +0000
+++ scripts/ibid-knab-import 2010-01-24 14:59:10 +0000
@@ -2,7 +2,7 @@
2# Copyright (c) 2009-2010, Michael Gorven, Stefano Rivera2# Copyright (c) 2009-2010, Michael Gorven, Stefano Rivera
3# Released under terms of the MIT/X/Expat Licence. See COPYING for details.3# Released under terms of the MIT/X/Expat Licence. See COPYING for details.
44
5from sys import argv, exit, stderr, stdout5from sys import argv, path, exit, stderr, stdout
66
7from chardet import detect7from chardet import detect
8from dateutil.tz import tzlocal, tzutc8from dateutil.tz import tzlocal, tzutc
@@ -10,6 +10,8 @@
10from sqlalchemy.ext.declarative import declarative_base10from sqlalchemy.ext.declarative import declarative_base
11from sqlalchemy.orm import sessionmaker11from sqlalchemy.orm import sessionmaker
1212
13path.insert(0, '.')
14
13from ibid.config import FileConfig15from ibid.config import FileConfig
14from ibid.db.models import Identity16from ibid.db.models import Identity
15from ibid.plugins.seen import Sighting17from ibid.plugins.seen import Sighting
@@ -270,7 +272,7 @@
270272
271if __name__ == '__main__':273if __name__ == '__main__':
272 if len(argv) < 3:274 if len(argv) < 3:
273 print u'Usage: %s <knab database> <source> [<ibid config>]' % argv[:1]275 print u'Usage: %s <knab database> <source> [<ibid config>]' % argv[0]
274 exit(1)276 exit(1)
275277
276 knabengine = create_engine(argv[1])278 knabengine = create_engine(argv[1])
277279
=== renamed file 'scripts/ibid_pb' => 'scripts/ibid-pb-client'
--- scripts/ibid_pb 2010-01-17 20:08:12 +0000
+++ scripts/ibid-pb-client 2010-01-24 14:59:10 +0000
@@ -2,16 +2,18 @@
2# Copyright (c) 2009, Michael Gorven2# Copyright (c) 2009, Michael Gorven
3# Released under terms of the MIT/X/Expat Licence. See COPYING for details.3# Released under terms of the MIT/X/Expat Licence. See COPYING for details.
44
5from sys import argv, exit5from sys import argv, exit, path
6from optparse import OptionParser, OptionGroup6from optparse import OptionParser, OptionGroup
77
8from twisted.spread import pb8from twisted.spread import pb
9from twisted.internet import reactor9from twisted.internet import reactor
10from twisted.python import util10from twisted.python import util
1111
12path.insert(0, '.')
13
12from ibid.compat import json14from ibid.compat import json
1315
14parser = OptionParser(usage='%prog [options] message <message> | plugin <plugin> <class> <method> <parameters>')16parser = OptionParser(usage='%prog [options] message <message> | plugin <feature> <method> <parameters>')
15parser.add_option('-s', '--server', help='Hostname of Ibid instance')17parser.add_option('-s', '--server', help='Hostname of Ibid instance')
16parser.add_option('-p', '--port', help='Port number of Ibid instance')18parser.add_option('-p', '--port', help='Port number of Ibid instance')
1719
1820
=== modified file 'setup.py'
--- setup.py 2010-01-18 22:13:23 +0000
+++ setup.py 2010-01-24 14:59:10 +0000
@@ -58,8 +58,8 @@
58 'scripts/ibid-plugin',58 'scripts/ibid-plugin',
59 'scripts/ibid-setup',59 'scripts/ibid-setup',
60 'scripts/ibid-factpack',60 'scripts/ibid-factpack',
61 'scripts/ibid_pb',61 'scripts/ibid-pb-client',
62 'scripts/ibid_import',62 'scripts/ibid-knab-import',
63 'scripts/ibid.tac',63 'scripts/ibid.tac',
64 ],64 ],
6565

Subscribers

People subscribed via source and target branches