mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-26 20:52:45 +01:00
Merge pull request #1532 from progval/entrypoints
Use setuptools 'entry_points' + add 'limnoria-*' CLIs in addition to 'supybot-*'
This commit is contained in:
commit
1690839a26
42
man/limnoria-adduser.1
Normal file
42
man/limnoria-adduser.1
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
.\" Process this file with
|
||||||
|
.\" groff -man -Tascii limnoria-adduser.1
|
||||||
|
.\"
|
||||||
|
.TH LIMNORIA-ADDUSER 1 "APRIL 2005"
|
||||||
|
.SH NAME
|
||||||
|
limnoria-adduser \- Adds a user to a Limnoria users.conf file
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.B limnoria-adduser
|
||||||
|
.RI [ options ] " users.conf
|
||||||
|
.SH DESCRIPTION
|
||||||
|
.B limnoria-adduser
|
||||||
|
adds a user to the specified users.conf file.
|
||||||
|
.SH OPTIONS
|
||||||
|
.TP
|
||||||
|
.B \-\^\-version
|
||||||
|
Show version of program.
|
||||||
|
.TP
|
||||||
|
.BR \-h ", " \-\^\-help
|
||||||
|
Show summary of options.
|
||||||
|
.TP
|
||||||
|
.BR \-u " NAME" "\fR,\fP \-\^\-username=" NAME
|
||||||
|
Specifies the username to use for the new user.
|
||||||
|
.TP
|
||||||
|
.BR \-p " PASSWORD" "\fR,\fP \-\^\-password=" PASSWORD
|
||||||
|
Specifies the password to use for the new user.
|
||||||
|
.TP
|
||||||
|
.BR \-c " CAPABILITY" "\fR,\fP \-\^\-capability=" CAPABILITY
|
||||||
|
Capability the user should have; this option may be given
|
||||||
|
multiple times.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.IR python (1),
|
||||||
|
.IR limnoria (1),
|
||||||
|
.IR limnoria-test (1),
|
||||||
|
.IR limnoria-botchk (1),
|
||||||
|
.IR limnoria-wizard (1),
|
||||||
|
.IR limnoria-plugin-doc (1),
|
||||||
|
.IR limnoria-plugin-create (1)
|
||||||
|
.SH AUTHOR
|
||||||
|
This manual page was originally written by James McCoy
|
||||||
|
<vega dot james at gmail dot com>. Permission is granted to copy,
|
||||||
|
distribute and/or modify this document under the terms of the Limnoria
|
||||||
|
license, a BSD-style license.
|
54
man/limnoria-botchk.1
Normal file
54
man/limnoria-botchk.1
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
.\" Process this file with
|
||||||
|
.\" groff -man -Tascii limnoria-botchk.1
|
||||||
|
.\"
|
||||||
|
.TH LIMNORIA-BOTCHK 1 "APRIL 2005"
|
||||||
|
.SH NAME
|
||||||
|
limnoria-botchk \- A script to start Limnoria if it's not already running.
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.B limnoria-botchk
|
||||||
|
.RI [ options ]
|
||||||
|
.SH DESCRIPTION
|
||||||
|
.B limnoria-botchk
|
||||||
|
is a script that will start Limnoria if it detects that one is not currently
|
||||||
|
running. This can be useful for scheduling
|
||||||
|
.IR limnoria (1)
|
||||||
|
to run via
|
||||||
|
.IR cron (8).
|
||||||
|
.SH OPTIONS
|
||||||
|
.TP
|
||||||
|
.BR \-h ", " \-\^\-help
|
||||||
|
Show summary of options.
|
||||||
|
.TP
|
||||||
|
.BR \-v ", " \-\^\-verbose
|
||||||
|
Use verbose output when running the script.
|
||||||
|
.TP
|
||||||
|
.BI \-\^\-botdir= BOTDIR
|
||||||
|
Determines which directory the bot be started in.
|
||||||
|
.TP
|
||||||
|
.BI \-\^\-pidfile= PIDFILE
|
||||||
|
Specifies the name of the pidfile to look for. This should be relative
|
||||||
|
to the given botdir.
|
||||||
|
.TP
|
||||||
|
.BI \-\^\-limnoria= LIMNORIA
|
||||||
|
Specifies the location of
|
||||||
|
.IR limnoria (1).
|
||||||
|
If this is not given, it is assumed that
|
||||||
|
.IR limnoria (1)
|
||||||
|
is in the user's $PATH.
|
||||||
|
.TP
|
||||||
|
.BI \-\^\-conffile= CONFFILE
|
||||||
|
Specifies the path to the bot's configuration file. This will be used
|
||||||
|
when (re)starting the bot.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.IR python (1),
|
||||||
|
.IR limnoria (1),
|
||||||
|
.IR limnoria-test (1),
|
||||||
|
.IR limnoria-wizard (1),
|
||||||
|
.IR limnoria-adduser (1),
|
||||||
|
.IR limnoria-plugin-doc (1),
|
||||||
|
.IR limnoria-plugin-create (1)
|
||||||
|
.SH AUTHOR
|
||||||
|
This manual page was originally written by James McCoy
|
||||||
|
<vega dot james at gmail dot com>. Permission is granted to copy,
|
||||||
|
distribute and/or modify this document under the terms of the Limnoria
|
||||||
|
license, a BSD-style license.
|
43
man/limnoria-plugin-create.1
Normal file
43
man/limnoria-plugin-create.1
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
.\" Process this file with
|
||||||
|
.\" groff -man -Tascii limnoria-plugin-create.1
|
||||||
|
.\"
|
||||||
|
.TH LIMNORIA-PLUGIN-CREATE 1 "APRIL 2005"
|
||||||
|
.SH NAME
|
||||||
|
limnoria-plugin-create \- A wizard for creating Limnoria plugins
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.B limnoria-plugin-create
|
||||||
|
.RI [ options ]
|
||||||
|
.SH DESCRIPTION
|
||||||
|
.B limnoria-plugin-create
|
||||||
|
is a wizard that creates a template python source file for a new
|
||||||
|
.IR limnoria (1)
|
||||||
|
plugin.
|
||||||
|
.SH OPTIONS
|
||||||
|
.TP
|
||||||
|
.B \-\^\-version
|
||||||
|
Show version of program.
|
||||||
|
.TP
|
||||||
|
.BR \-h ", " \-\^\-help
|
||||||
|
Show summary of options.
|
||||||
|
.TP
|
||||||
|
.BI \-n " NAME" "\fR,\fP \-\^\-name=" NAME
|
||||||
|
Sets the name for the plugin.
|
||||||
|
.TP
|
||||||
|
.BR \-t ", " \-\^\-thread
|
||||||
|
Makes the plugin threaded.
|
||||||
|
.TP
|
||||||
|
.BI \-\^\-real\-name= REALNAME
|
||||||
|
Specify what real name the copyright is assigned to.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.IR python (1),
|
||||||
|
.IR limnoria (1),
|
||||||
|
.IR limnoria-test (1),
|
||||||
|
.IR limnoria-botchk (1),
|
||||||
|
.IR limnoria-wizard (1),
|
||||||
|
.IR limnoria-adduser (1),
|
||||||
|
.IR limnoria-plugin-doc (1)
|
||||||
|
.SH AUTHOR
|
||||||
|
This manual page was originally written by James McCoy
|
||||||
|
<vega dot james at gmail dot com>. Permission is granted to copy,
|
||||||
|
distribute and/or modify this document under the terms of the Limnoria
|
||||||
|
license, a BSD-style license.
|
48
man/limnoria-plugin-doc.1
Normal file
48
man/limnoria-plugin-doc.1
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
.\" Process this file with
|
||||||
|
.\" groff -man -Tascii limnoria-plugin-doc.1
|
||||||
|
.\"
|
||||||
|
.TH LIMNORIA-PLUGIN-DOC 1 "May 2009"
|
||||||
|
.SH NAME
|
||||||
|
limnoria-plugin-doc \- Generates the documentation for a Limnoria plugin
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.B limnoria-plugin-doc
|
||||||
|
.RI [ options ]
|
||||||
|
.SH DESCRIPTION
|
||||||
|
.B limnoria-plugin-doc
|
||||||
|
is used to generate documentation (StructuredText or reStructuredText format)
|
||||||
|
for a
|
||||||
|
.IR limnoria (1)
|
||||||
|
plugin.
|
||||||
|
.SH OPTIONS
|
||||||
|
.TP
|
||||||
|
.B \-\^\-version
|
||||||
|
Show version of program.
|
||||||
|
.TP
|
||||||
|
.BR \-h ", " \-\^\-help
|
||||||
|
Show summary of options.
|
||||||
|
.TP
|
||||||
|
.BR \-c ", " \-\^\-clean
|
||||||
|
Clean the various data/conf/log directories after generating the docs.
|
||||||
|
.TP
|
||||||
|
.BR \-o ", " \-\^\-output\-dir= \fIOUTPUTDIR
|
||||||
|
Specifies the directory in which to write the documentation for the plugin.
|
||||||
|
.TP
|
||||||
|
.BR \-f ", " \-\^\-format= \fIFORMAT
|
||||||
|
Specifies which output format to use. Choices are 'rst' or 'stx'.
|
||||||
|
.TP
|
||||||
|
.BI \-\^\-plugins\-dir= PLUGINSDIRS
|
||||||
|
Looks in the given directory for plugins and generates documentation for all of
|
||||||
|
them.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.IR python (1),
|
||||||
|
.IR limnoria (1),
|
||||||
|
.IR limnoria-test (1),
|
||||||
|
.IR limnoria-botchk (1),
|
||||||
|
.IR limnoria-wizard (1),
|
||||||
|
.IR limnoria-adduser (1),
|
||||||
|
.IR limnoria-plugin-create (1)
|
||||||
|
.SH AUTHOR
|
||||||
|
This manual page was originally written by James McCoy
|
||||||
|
<vega dot james at gmail dot com>. Permission is granted to copy,
|
||||||
|
distribute and/or modify this document under the terms of the Limnoria
|
||||||
|
license, a BSD-style license.
|
35
man/limnoria-reset-password.1
Normal file
35
man/limnoria-reset-password.1
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
.\" Process this file with
|
||||||
|
.\" groff -man -Tascii limnoria-reset-password.1
|
||||||
|
.\"
|
||||||
|
.TH LIMNORIA-RESET-PASSWORD 1 "JUNE 2022"
|
||||||
|
.SH NAME
|
||||||
|
limnoria-reset-password \- Changes a user's password in a Limnoria users.conf file
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.B limnoria-reset-password
|
||||||
|
.RI [ options ] " users.conf
|
||||||
|
.SH DESCRIPTION
|
||||||
|
.B limnoria-reset-password
|
||||||
|
changes a user's password in a Limnoria users.conf file
|
||||||
|
.SH OPTIONS
|
||||||
|
.TP
|
||||||
|
.B \-\^\-version
|
||||||
|
Show version of program.
|
||||||
|
.TP
|
||||||
|
.BR \-h ", " \-\^\-help
|
||||||
|
Show summary of options.
|
||||||
|
.TP
|
||||||
|
.BR \-u " NAME" "\fR,\fP \-\^\-username=" NAME
|
||||||
|
Specifies the username to use for the new user.
|
||||||
|
.TP
|
||||||
|
.BR \-p " PASSWORD" "\fR,\fP \-\^\-password=" PASSWORD
|
||||||
|
Specifies the new password to use for the new user.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.IR python (1),
|
||||||
|
.IR limnoria (1),
|
||||||
|
.IR limnoria-adduser (1)
|
||||||
|
.SH AUTHOR
|
||||||
|
This manual page was originally written by Valentin Lorentz
|
||||||
|
<progval plus limnoria at progval dot net>. Permission is granted to copy,
|
||||||
|
distribute and/or modify this document under the terms of the Limnoria
|
||||||
|
license, a BSD-style license.
|
||||||
|
|
51
man/limnoria-test.1
Normal file
51
man/limnoria-test.1
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
.\" Process this file with
|
||||||
|
.\" groff -man -Tascii limnoria-test.1
|
||||||
|
.\"
|
||||||
|
.TH LIMNORIA-TEST 1 "OCTOBER 2005"
|
||||||
|
.SH NAME
|
||||||
|
limnoria-test \- Runs the test suite for a Limnoria plugin
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.B limnoria-test
|
||||||
|
.RI [ options ] " plugins
|
||||||
|
.SH DESCRIPTION
|
||||||
|
.B limnoria-test
|
||||||
|
Runs the test suite for a Limnoria plugin
|
||||||
|
.SH OPTIONS
|
||||||
|
.TP
|
||||||
|
.B \-\^\-version
|
||||||
|
Show version of program.
|
||||||
|
.TP
|
||||||
|
.BR \-h ", " \-\^\-help
|
||||||
|
Show summary of options.
|
||||||
|
.TP
|
||||||
|
.BR \-c ", " \-\^\-clean
|
||||||
|
Cleans the various data/conf/logs directories before running tests.
|
||||||
|
.TP
|
||||||
|
.BR \-t " TIMEOUT" "\fR,\fP \-\^\-timeout=" TIMEOUT
|
||||||
|
Specifies the timeout for tests to return responses.
|
||||||
|
.TP
|
||||||
|
.BR \-v ", " \-\^\-verbose
|
||||||
|
Sets the verbose flag, logging extra information about each test that runs.
|
||||||
|
.TP
|
||||||
|
.BR \-\^\-no\-network
|
||||||
|
Prevents the network-based tests from being run.
|
||||||
|
.TP
|
||||||
|
.BR \-\^\-trace
|
||||||
|
Traces all calls made. Unless you're really in a pinch, you probably
|
||||||
|
shouldn't do this; it results in copious amounts of output.
|
||||||
|
.TP
|
||||||
|
.BR "\fR,\fP \-\^\-plugins\-dir=" PLUGINSDIR
|
||||||
|
Looks in the given directory for plugins and loads the tests for all of them.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.IR python (1),
|
||||||
|
.IR limnoria (1),
|
||||||
|
.IR limnoria-botchk (1),
|
||||||
|
.IR limnoria-wizard (1),
|
||||||
|
.IR limnoria-adduser (1),
|
||||||
|
.IR limnoria-plugin-doc (1),
|
||||||
|
.IR limnoria-plugin-create (1)
|
||||||
|
.SH AUTHOR
|
||||||
|
This manual page was originally written by James McCoy
|
||||||
|
<vega dot james at gmail dot com>. Permission is granted to copy,
|
||||||
|
distribute and/or modify this document under the terms of the Limnoria
|
||||||
|
license, a BSD-style license.
|
42
man/limnoria-wizard.1
Normal file
42
man/limnoria-wizard.1
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
.\" Process this file with
|
||||||
|
.\" groff -man -Tascii limnoria-wizard.1
|
||||||
|
.\"
|
||||||
|
.TH LIMNORIA-WIZARD 1 "SEPTEMBER 2004"
|
||||||
|
.SH NAME
|
||||||
|
limnoria-wizard \- A wizard for creating Limnoria configuration files
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.B limnoria-wizard
|
||||||
|
.RI [ options ]
|
||||||
|
.SH DESCRIPTION
|
||||||
|
.B limnoria-wizard
|
||||||
|
is an in-depth wizard that provides a nice user interface for creating
|
||||||
|
configuration files for
|
||||||
|
.IR limnoria (1).
|
||||||
|
.SH OPTIONS
|
||||||
|
.TP
|
||||||
|
.B \-\^\-version
|
||||||
|
Show version of program.
|
||||||
|
.TP
|
||||||
|
.BR \-h ", " \-\^\-help
|
||||||
|
Show summary of options.
|
||||||
|
.TP
|
||||||
|
.B \-\^\-allow\-root
|
||||||
|
Determines whether the wizard will be allowed to run as root. You do not
|
||||||
|
want this. Do not do it. Even if you think you want it, you do not.
|
||||||
|
.TP
|
||||||
|
.B \-\^\-no\-network
|
||||||
|
Determines whether the wizard will be allowed to run without a network
|
||||||
|
connection.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.IR python (1),
|
||||||
|
.IR limnoria (1),
|
||||||
|
.IR limnoria-test (1),
|
||||||
|
.IR limnoria-botchk (1),
|
||||||
|
.IR limnoria-adduser (1),
|
||||||
|
.IR limnoria-plugin-doc (1),
|
||||||
|
.IR limnoria-plugin-create (1)
|
||||||
|
.SH AUTHOR
|
||||||
|
This manual page was originally written by James McCoy
|
||||||
|
<vega dot james at gmail dot com>. Permission is granted to copy,
|
||||||
|
distribute and/or modify this document under the terms of the Limnoria
|
||||||
|
license, a BSD-style license.
|
66
man/limnoria.1
Normal file
66
man/limnoria.1
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
.\" Process this file with
|
||||||
|
.\" groff -man -Tascii limnoria.1
|
||||||
|
.\"
|
||||||
|
.TH LIMNORIA 1 "JULY 2009"
|
||||||
|
.SH NAME
|
||||||
|
limnoria - A robust and user friendly Python IRC bot
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.B limnoria
|
||||||
|
.RI [ options ] " configFile
|
||||||
|
.SH DESCRIPTION
|
||||||
|
.B Limnoria
|
||||||
|
is a robust, user-friendly, and programmer-friendly Python IRC bot.
|
||||||
|
It aims to be an adequate replacement for most existing IRC bots. It
|
||||||
|
includes a very flexible and powerful ACL system for controlling access
|
||||||
|
to commands, as well as more than 50 builtin plugins providing around
|
||||||
|
400 actual commands.
|
||||||
|
.SH OPTIONS
|
||||||
|
.TP
|
||||||
|
.B \-\^\-version
|
||||||
|
Show version of program.
|
||||||
|
.TP
|
||||||
|
.BR \-h ", " \-\^\-help
|
||||||
|
Show summary of options.
|
||||||
|
.TP
|
||||||
|
.BR \-P ", " \-\^\-profile
|
||||||
|
Enable profiling.
|
||||||
|
.TP
|
||||||
|
.BI \-n " NICK" "\fR,\fP \-\^\-nick=" NICK
|
||||||
|
Nick the bot should use.
|
||||||
|
.TP
|
||||||
|
.BI \-u " USER" "\fR,\fP \-\^\-user=" USER
|
||||||
|
Full username the bot should use.
|
||||||
|
.TP
|
||||||
|
.BI \-i " IDENT" "\fR,\fP \-\^\-ident=" IDENT
|
||||||
|
Ident the bot should use.
|
||||||
|
.TP
|
||||||
|
.BR \-d ", " \-\^\-daemon
|
||||||
|
Determines whether the bot will daemonize. This is a no-op on
|
||||||
|
non-POSIX systems.
|
||||||
|
.TP
|
||||||
|
.B \-\^\-allow\-default\-owner
|
||||||
|
Determines whether the bot will allow its defaultCapabilities not to
|
||||||
|
include "\-owner", thus giving all users the owner capability by
|
||||||
|
default. This is dumb, hence we require a command-line option to
|
||||||
|
enable it.
|
||||||
|
.TP
|
||||||
|
.B \-\^\-allow\-root
|
||||||
|
Determines whether the bot will be allowed to run as root. You do not
|
||||||
|
want this. Do not do it. Even if you think you want it, you do not.
|
||||||
|
.TP
|
||||||
|
.B \-\^\-debug
|
||||||
|
Determines whether some extra debugging stuff will be logged by this
|
||||||
|
script.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.IR python (1),
|
||||||
|
.IR limnoria-test (1),
|
||||||
|
.IR limnoria-botchk (1),
|
||||||
|
.IR limnoria-wizard (1),
|
||||||
|
.IR limnoria-adduser (1),
|
||||||
|
.IR limnoria-plugin-doc (1),
|
||||||
|
.IR limnoria-plugin-create (1)
|
||||||
|
.SH AUTHOR
|
||||||
|
This manual page was originally written by James McCoy
|
||||||
|
<vega dot james at gmail dot com>. Permission is granted to copy,
|
||||||
|
distribute and/or modify this document under the terms of the Limnoria
|
||||||
|
license, a BSD-style license.
|
@ -1,42 +0,0 @@
|
|||||||
.\" Process this file with
|
|
||||||
.\" groff -man -Tascii supybot-adduser.1
|
|
||||||
.\"
|
|
||||||
.TH SUPYBOT-ADDUSER 1 "APRIL 2005"
|
|
||||||
.SH NAME
|
|
||||||
supybot-adduser \- Adds a user to a Supybot users.conf file
|
|
||||||
.SH SYNOPSIS
|
|
||||||
.B supybot-adduser
|
|
||||||
.RI [ options ] " users.conf
|
|
||||||
.SH DESCRIPTION
|
|
||||||
.B supybot-adduser
|
|
||||||
adds a user to the specified users.conf file.
|
|
||||||
.SH OPTIONS
|
|
||||||
.TP
|
|
||||||
.B \-\^\-version
|
|
||||||
Show version of program.
|
|
||||||
.TP
|
|
||||||
.BR \-h ", " \-\^\-help
|
|
||||||
Show summary of options.
|
|
||||||
.TP
|
|
||||||
.BR \-u " NAME" "\fR,\fP \-\^\-username=" NAME
|
|
||||||
Specifies the username to use for the new user.
|
|
||||||
.TP
|
|
||||||
.BR \-p " PASSWORD" "\fR,\fP \-\^\-password=" PASSWORD
|
|
||||||
Specifies the password to use for the new user.
|
|
||||||
.TP
|
|
||||||
.BR \-c " CAPABILITY" "\fR,\fP \-\^\-capability=" CAPABILITY
|
|
||||||
Capability the user should have; this option may be given
|
|
||||||
multiple times.
|
|
||||||
.SH "SEE ALSO"
|
|
||||||
.IR python (1),
|
|
||||||
.IR supybot (1),
|
|
||||||
.IR supybot-test (1),
|
|
||||||
.IR supybot-botchk (1),
|
|
||||||
.IR supybot-wizard (1),
|
|
||||||
.IR supybot-plugin-doc (1),
|
|
||||||
.IR supybot-plugin-create (1)
|
|
||||||
.SH AUTHOR
|
|
||||||
This manual page was originally written by James McCoy
|
|
||||||
<vega dot james at gmail dot com>. Permission is granted to copy,
|
|
||||||
distribute and/or modify this document under the terms of the Supybot
|
|
||||||
license, a BSD-style license.
|
|
1
man/supybot-adduser.1
Symbolic link
1
man/supybot-adduser.1
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
limnoria-adduser.1
|
@ -1,54 +0,0 @@
|
|||||||
.\" Process this file with
|
|
||||||
.\" groff -man -Tascii supybot-botchk.1
|
|
||||||
.\"
|
|
||||||
.TH SUPYBOT-BOTCHK 1 "APRIL 2005"
|
|
||||||
.SH NAME
|
|
||||||
supybot-botchk \- A script to start Supybot if it's not already running.
|
|
||||||
.SH SYNOPSIS
|
|
||||||
.B supybot-botchk
|
|
||||||
.RI [ options ]
|
|
||||||
.SH DESCRIPTION
|
|
||||||
.B supybot-botchk
|
|
||||||
is a script that will start Supybot if it detects that one is not currently
|
|
||||||
running. This can be useful for scheduling
|
|
||||||
.IR supybot (1)
|
|
||||||
to run via
|
|
||||||
.IR cron (8).
|
|
||||||
.SH OPTIONS
|
|
||||||
.TP
|
|
||||||
.BR \-h ", " \-\^\-help
|
|
||||||
Show summary of options.
|
|
||||||
.TP
|
|
||||||
.BR \-v ", " \-\^\-verbose
|
|
||||||
Use verbose output when running the script.
|
|
||||||
.TP
|
|
||||||
.BI \-\^\-botdir= BOTDIR
|
|
||||||
Determines which directory the bot be started in.
|
|
||||||
.TP
|
|
||||||
.BI \-\^\-pidfile= PIDFILE
|
|
||||||
Specifies the name of the pidfile to look for. This should be relative
|
|
||||||
to the given botdir.
|
|
||||||
.TP
|
|
||||||
.BI \-\^\-supybot= SUPYBOT
|
|
||||||
Specifies the location of
|
|
||||||
.IR supybot (1).
|
|
||||||
If this is not given, it is assumed that
|
|
||||||
.IR supybot (1)
|
|
||||||
is in the user's $PATH.
|
|
||||||
.TP
|
|
||||||
.BI \-\^\-conffile= CONFFILE
|
|
||||||
Specifies the path to the bot's configuration file. This will be used
|
|
||||||
when (re)starting the bot.
|
|
||||||
.SH "SEE ALSO"
|
|
||||||
.IR python (1),
|
|
||||||
.IR supybot (1),
|
|
||||||
.IR supybot-test (1),
|
|
||||||
.IR supybot-wizard (1),
|
|
||||||
.IR supybot-adduser (1),
|
|
||||||
.IR supybot-plugin-doc (1),
|
|
||||||
.IR supybot-plugin-create (1)
|
|
||||||
.SH AUTHOR
|
|
||||||
This manual page was originally written by James McCoy
|
|
||||||
<vega dot james at gmail dot com>. Permission is granted to copy,
|
|
||||||
distribute and/or modify this document under the terms of the Supybot
|
|
||||||
license, a BSD-style license.
|
|
1
man/supybot-botchk.1
Symbolic link
1
man/supybot-botchk.1
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
limnoria-botchk.1
|
@ -1,43 +0,0 @@
|
|||||||
.\" Process this file with
|
|
||||||
.\" groff -man -Tascii supybot-plugin-create.1
|
|
||||||
.\"
|
|
||||||
.TH SUPYBOT-PLUGIN-CREATE 1 "APRIL 2005"
|
|
||||||
.SH NAME
|
|
||||||
supybot-plugin-create \- A wizard for creating Supybot plugins
|
|
||||||
.SH SYNOPSIS
|
|
||||||
.B supybot-plugin-create
|
|
||||||
.RI [ options ]
|
|
||||||
.SH DESCRIPTION
|
|
||||||
.B supybot-plugin-create
|
|
||||||
is a wizard that creates a template python source file for a new
|
|
||||||
.IR supybot (1)
|
|
||||||
plugin.
|
|
||||||
.SH OPTIONS
|
|
||||||
.TP
|
|
||||||
.B \-\^\-version
|
|
||||||
Show version of program.
|
|
||||||
.TP
|
|
||||||
.BR \-h ", " \-\^\-help
|
|
||||||
Show summary of options.
|
|
||||||
.TP
|
|
||||||
.BI \-n " NAME" "\fR,\fP \-\^\-name=" NAME
|
|
||||||
Sets the name for the plugin.
|
|
||||||
.TP
|
|
||||||
.BR \-t ", " \-\^\-thread
|
|
||||||
Makes the plugin threaded.
|
|
||||||
.TP
|
|
||||||
.BI \-\^\-real\-name= REALNAME
|
|
||||||
Specify what real name the copyright is assigned to.
|
|
||||||
.SH "SEE ALSO"
|
|
||||||
.IR python (1),
|
|
||||||
.IR supybot (1),
|
|
||||||
.IR supybot-test (1),
|
|
||||||
.IR supybot-botchk (1),
|
|
||||||
.IR supybot-wizard (1),
|
|
||||||
.IR supybot-adduser (1),
|
|
||||||
.IR supybot-plugin-doc (1)
|
|
||||||
.SH AUTHOR
|
|
||||||
This manual page was originally written by James McCoy
|
|
||||||
<vega dot james at gmail dot com>. Permission is granted to copy,
|
|
||||||
distribute and/or modify this document under the terms of the Supybot
|
|
||||||
license, a BSD-style license.
|
|
1
man/supybot-plugin-create.1
Symbolic link
1
man/supybot-plugin-create.1
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
limnoria-plugin-create.1
|
@ -1,48 +0,0 @@
|
|||||||
.\" Process this file with
|
|
||||||
.\" groff -man -Tascii supybot-plugin-doc.1
|
|
||||||
.\"
|
|
||||||
.TH SUPYBOT-PLUGIN-DOC 1 "May 2009"
|
|
||||||
.SH NAME
|
|
||||||
supybot-plugin-doc \- Generates the documentation for a Supybot plugin
|
|
||||||
.SH SYNOPSIS
|
|
||||||
.B supybot-plugin-doc
|
|
||||||
.RI [ options ]
|
|
||||||
.SH DESCRIPTION
|
|
||||||
.B supybot-plugin-doc
|
|
||||||
is used to generate documentation (StructuredText or reStructuredText format)
|
|
||||||
for a
|
|
||||||
.IR supybot (1)
|
|
||||||
plugin.
|
|
||||||
.SH OPTIONS
|
|
||||||
.TP
|
|
||||||
.B \-\^\-version
|
|
||||||
Show version of program.
|
|
||||||
.TP
|
|
||||||
.BR \-h ", " \-\^\-help
|
|
||||||
Show summary of options.
|
|
||||||
.TP
|
|
||||||
.BR \-c ", " \-\^\-clean
|
|
||||||
Clean the various data/conf/log directories after generating the docs.
|
|
||||||
.TP
|
|
||||||
.BR \-o ", " \-\^\-output\-dir= \fIOUTPUTDIR
|
|
||||||
Specifies the directory in which to write the documentation for the plugin.
|
|
||||||
.TP
|
|
||||||
.BR \-f ", " \-\^\-format= \fIFORMAT
|
|
||||||
Specifies which output format to use. Choices are 'rst' or 'stx'.
|
|
||||||
.TP
|
|
||||||
.BI \-\^\-plugins\-dir= PLUGINSDIRS
|
|
||||||
Looks in the given directory for plugins and generates documentation for all of
|
|
||||||
them.
|
|
||||||
.SH "SEE ALSO"
|
|
||||||
.IR python (1),
|
|
||||||
.IR supybot (1),
|
|
||||||
.IR supybot-test (1),
|
|
||||||
.IR supybot-botchk (1),
|
|
||||||
.IR supybot-wizard (1),
|
|
||||||
.IR supybot-adduser (1),
|
|
||||||
.IR supybot-plugin-create (1)
|
|
||||||
.SH AUTHOR
|
|
||||||
This manual page was originally written by James McCoy
|
|
||||||
<vega dot james at gmail dot com>. Permission is granted to copy,
|
|
||||||
distribute and/or modify this document under the terms of the Supybot
|
|
||||||
license, a BSD-style license.
|
|
1
man/supybot-plugin-doc.1
Symbolic link
1
man/supybot-plugin-doc.1
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
limnoria-plugin-doc.1
|
@ -1,35 +0,0 @@
|
|||||||
.\" Process this file with
|
|
||||||
.\" groff -man -Tascii supybot-reset-password.1
|
|
||||||
.\"
|
|
||||||
.TH SUPYBOT-RESET-PASSWORD 1 "JUNE 2022"
|
|
||||||
.SH NAME
|
|
||||||
supybot-reset-password \- Changes a user's password in a Supybot users.conf file
|
|
||||||
.SH SYNOPSIS
|
|
||||||
.B supybot-reset-password
|
|
||||||
.RI [ options ] " users.conf
|
|
||||||
.SH DESCRIPTION
|
|
||||||
.B supybot-reset-password
|
|
||||||
changes a user's password in a Supybot users.conf file
|
|
||||||
.SH OPTIONS
|
|
||||||
.TP
|
|
||||||
.B \-\^\-version
|
|
||||||
Show version of program.
|
|
||||||
.TP
|
|
||||||
.BR \-h ", " \-\^\-help
|
|
||||||
Show summary of options.
|
|
||||||
.TP
|
|
||||||
.BR \-u " NAME" "\fR,\fP \-\^\-username=" NAME
|
|
||||||
Specifies the username to use for the new user.
|
|
||||||
.TP
|
|
||||||
.BR \-p " PASSWORD" "\fR,\fP \-\^\-password=" PASSWORD
|
|
||||||
Specifies the new password to use for the new user.
|
|
||||||
.SH "SEE ALSO"
|
|
||||||
.IR python (1),
|
|
||||||
.IR supybot (1),
|
|
||||||
.IR supybot-adduser (1)
|
|
||||||
.SH AUTHOR
|
|
||||||
This manual page was originally written by Valentin Lorentz
|
|
||||||
<progval plus limnoria at progval dot net>. Permission is granted to copy,
|
|
||||||
distribute and/or modify this document under the terms of the Supybot
|
|
||||||
license, a BSD-style license.
|
|
||||||
|
|
1
man/supybot-reset-password.1
Symbolic link
1
man/supybot-reset-password.1
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
limnoria-reset-password.1
|
@ -1,51 +0,0 @@
|
|||||||
.\" Process this file with
|
|
||||||
.\" groff -man -Tascii supybot-test.1
|
|
||||||
.\"
|
|
||||||
.TH SUPYBOT-TEST 1 "OCTOBER 2005"
|
|
||||||
.SH NAME
|
|
||||||
supybot-test \- Runs the test suite for a Supybot plugin
|
|
||||||
.SH SYNOPSIS
|
|
||||||
.B supybot-test
|
|
||||||
.RI [ options ] " plugins
|
|
||||||
.SH DESCRIPTION
|
|
||||||
.B supybot-test
|
|
||||||
Runs the test suite for a Supybot plugin
|
|
||||||
.SH OPTIONS
|
|
||||||
.TP
|
|
||||||
.B \-\^\-version
|
|
||||||
Show version of program.
|
|
||||||
.TP
|
|
||||||
.BR \-h ", " \-\^\-help
|
|
||||||
Show summary of options.
|
|
||||||
.TP
|
|
||||||
.BR \-c ", " \-\^\-clean
|
|
||||||
Cleans the various data/conf/logs directories before running tests.
|
|
||||||
.TP
|
|
||||||
.BR \-t " TIMEOUT" "\fR,\fP \-\^\-timeout=" TIMEOUT
|
|
||||||
Specifies the timeout for tests to return responses.
|
|
||||||
.TP
|
|
||||||
.BR \-v ", " \-\^\-verbose
|
|
||||||
Sets the verbose flag, logging extra information about each test that runs.
|
|
||||||
.TP
|
|
||||||
.BR \-\^\-no\-network
|
|
||||||
Prevents the network-based tests from being run.
|
|
||||||
.TP
|
|
||||||
.BR \-\^\-trace
|
|
||||||
Traces all calls made. Unless you're really in a pinch, you probably
|
|
||||||
shouldn't do this; it results in copious amounts of output.
|
|
||||||
.TP
|
|
||||||
.BR "\fR,\fP \-\^\-plugins\-dir=" PLUGINSDIR
|
|
||||||
Looks in the given directory for plugins and loads the tests for all of them.
|
|
||||||
.SH "SEE ALSO"
|
|
||||||
.IR python (1),
|
|
||||||
.IR supybot (1),
|
|
||||||
.IR supybot-botchk (1),
|
|
||||||
.IR supybot-wizard (1),
|
|
||||||
.IR supybot-adduser (1),
|
|
||||||
.IR supybot-plugin-doc (1),
|
|
||||||
.IR supybot-plugin-create (1)
|
|
||||||
.SH AUTHOR
|
|
||||||
This manual page was originally written by James McCoy
|
|
||||||
<vega dot james at gmail dot com>. Permission is granted to copy,
|
|
||||||
distribute and/or modify this document under the terms of the Supybot
|
|
||||||
license, a BSD-style license.
|
|
1
man/supybot-test.1
Symbolic link
1
man/supybot-test.1
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
limnoria-test.1
|
@ -1,42 +0,0 @@
|
|||||||
.\" Process this file with
|
|
||||||
.\" groff -man -Tascii supybot-wizard.1
|
|
||||||
.\"
|
|
||||||
.TH SUPYBOT-WIZARD 1 "SEPTEMBER 2004"
|
|
||||||
.SH NAME
|
|
||||||
supybot-wizard \- A wizard for creating Supybot configuration files
|
|
||||||
.SH SYNOPSIS
|
|
||||||
.B supybot-wizard
|
|
||||||
.RI [ options ]
|
|
||||||
.SH DESCRIPTION
|
|
||||||
.B supybot-wizard
|
|
||||||
is an in-depth wizard that provides a nice user interface for creating
|
|
||||||
configuration files for
|
|
||||||
.IR supybot (1).
|
|
||||||
.SH OPTIONS
|
|
||||||
.TP
|
|
||||||
.B \-\^\-version
|
|
||||||
Show version of program.
|
|
||||||
.TP
|
|
||||||
.BR \-h ", " \-\^\-help
|
|
||||||
Show summary of options.
|
|
||||||
.TP
|
|
||||||
.B \-\^\-allow\-root
|
|
||||||
Determines whether the wizard will be allowed to run as root. You do not
|
|
||||||
want this. Do not do it. Even if you think you want it, you do not.
|
|
||||||
.TP
|
|
||||||
.B \-\^\-no\-network
|
|
||||||
Determines whether the wizard will be allowed to run without a network
|
|
||||||
connection.
|
|
||||||
.SH "SEE ALSO"
|
|
||||||
.IR python (1),
|
|
||||||
.IR supybot (1),
|
|
||||||
.IR supybot-test (1),
|
|
||||||
.IR supybot-botchk (1),
|
|
||||||
.IR supybot-adduser (1),
|
|
||||||
.IR supybot-plugin-doc (1),
|
|
||||||
.IR supybot-plugin-create (1)
|
|
||||||
.SH AUTHOR
|
|
||||||
This manual page was originally written by James McCoy
|
|
||||||
<vega dot james at gmail dot com>. Permission is granted to copy,
|
|
||||||
distribute and/or modify this document under the terms of the Supybot
|
|
||||||
license, a BSD-style license.
|
|
1
man/supybot-wizard.1
Symbolic link
1
man/supybot-wizard.1
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
limnoria-wizard.1
|
@ -1,66 +0,0 @@
|
|||||||
.\" Process this file with
|
|
||||||
.\" groff -man -Tascii supybot.1
|
|
||||||
.\"
|
|
||||||
.TH SUPYBOT 1 "JULY 2009"
|
|
||||||
.SH NAME
|
|
||||||
supybot - A robust and user friendly Python IRC bot
|
|
||||||
.SH SYNOPSIS
|
|
||||||
.B supybot
|
|
||||||
.RI [ options ] " configFile
|
|
||||||
.SH DESCRIPTION
|
|
||||||
.B Supybot
|
|
||||||
is a robust, user-friendly, and programmer-friendly Python IRC bot.
|
|
||||||
It aims to be an adequate replacement for most existing IRC bots. It
|
|
||||||
includes a very flexible and powerful ACL system for controlling access
|
|
||||||
to commands, as well as more than 50 builtin plugins providing around
|
|
||||||
400 actual commands.
|
|
||||||
.SH OPTIONS
|
|
||||||
.TP
|
|
||||||
.B \-\^\-version
|
|
||||||
Show version of program.
|
|
||||||
.TP
|
|
||||||
.BR \-h ", " \-\^\-help
|
|
||||||
Show summary of options.
|
|
||||||
.TP
|
|
||||||
.BR \-P ", " \-\^\-profile
|
|
||||||
Enable profiling.
|
|
||||||
.TP
|
|
||||||
.BI \-n " NICK" "\fR,\fP \-\^\-nick=" NICK
|
|
||||||
Nick the bot should use.
|
|
||||||
.TP
|
|
||||||
.BI \-u " USER" "\fR,\fP \-\^\-user=" USER
|
|
||||||
Full username the bot should use.
|
|
||||||
.TP
|
|
||||||
.BI \-i " IDENT" "\fR,\fP \-\^\-ident=" IDENT
|
|
||||||
Ident the bot should use.
|
|
||||||
.TP
|
|
||||||
.BR \-d ", " \-\^\-daemon
|
|
||||||
Determines whether the bot will daemonize. This is a no-op on
|
|
||||||
non-POSIX systems.
|
|
||||||
.TP
|
|
||||||
.B \-\^\-allow\-default\-owner
|
|
||||||
Determines whether the bot will allow its defaultCapabilities not to
|
|
||||||
include "\-owner", thus giving all users the owner capability by
|
|
||||||
default. This is dumb, hence we require a command-line option to
|
|
||||||
enable it.
|
|
||||||
.TP
|
|
||||||
.B \-\^\-allow\-root
|
|
||||||
Determines whether the bot will be allowed to run as root. You do not
|
|
||||||
want this. Do not do it. Even if you think you want it, you do not.
|
|
||||||
.TP
|
|
||||||
.B \-\^\-debug
|
|
||||||
Determines whether some extra debugging stuff will be logged by this
|
|
||||||
script.
|
|
||||||
.SH "SEE ALSO"
|
|
||||||
.IR python (1),
|
|
||||||
.IR supybot-test (1),
|
|
||||||
.IR supybot-botchk (1),
|
|
||||||
.IR supybot-wizard (1),
|
|
||||||
.IR supybot-adduser (1),
|
|
||||||
.IR supybot-plugin-doc (1),
|
|
||||||
.IR supybot-plugin-create (1)
|
|
||||||
.SH AUTHOR
|
|
||||||
This manual page was originally written by James McCoy
|
|
||||||
<vega dot james at gmail dot com>. Permission is granted to copy,
|
|
||||||
distribute and/or modify this document under the terms of the Supybot
|
|
||||||
license, a BSD-style license.
|
|
1
man/supybot.1
Symbolic link
1
man/supybot.1
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
limnoria.1
|
50
setup.py
50
setup.py
@ -117,7 +117,9 @@ packages = ['supybot',
|
|||||||
'supybot.locales',
|
'supybot.locales',
|
||||||
'supybot.utils',
|
'supybot.utils',
|
||||||
'supybot.drivers',
|
'supybot.drivers',
|
||||||
'supybot.plugins',] + \
|
'supybot.plugins',
|
||||||
|
'supybot.scripts',
|
||||||
|
] + \
|
||||||
['supybot.plugins.'+s for s in plugins] + \
|
['supybot.plugins.'+s for s in plugins] + \
|
||||||
[
|
[
|
||||||
'supybot.plugins.Dict.local',
|
'supybot.plugins.Dict.local',
|
||||||
@ -152,6 +154,17 @@ for plugin in plugins:
|
|||||||
if files:
|
if files:
|
||||||
package_data.update({plugin_name: files})
|
package_data.update({plugin_name: files})
|
||||||
|
|
||||||
|
scripts = [
|
||||||
|
'',
|
||||||
|
'-test',
|
||||||
|
'-botchk',
|
||||||
|
'-wizard',
|
||||||
|
'-adduser',
|
||||||
|
'-reset-password',
|
||||||
|
'-plugin-doc',
|
||||||
|
'-plugin-create',
|
||||||
|
]
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
# Metadata
|
# Metadata
|
||||||
name='limnoria',
|
name='limnoria',
|
||||||
@ -202,25 +215,22 @@ setup(
|
|||||||
|
|
||||||
package_data=package_data,
|
package_data=package_data,
|
||||||
|
|
||||||
scripts=['scripts/supybot',
|
entry_points={
|
||||||
'scripts/supybot-test',
|
'console_scripts': [
|
||||||
'scripts/supybot-botchk',
|
'%s%s = supybot.scripts.limnoria%s:main'
|
||||||
'scripts/supybot-wizard',
|
% (prefix, name, name.replace('-', '_'))
|
||||||
'scripts/supybot-adduser',
|
for name in scripts
|
||||||
'scripts/supybot-reset-password',
|
for prefix in ('supybot', 'limnoria')
|
||||||
'scripts/supybot-plugin-doc',
|
]
|
||||||
'scripts/supybot-plugin-create',
|
},
|
||||||
],
|
|
||||||
data_files=[('share/man/man1', ['man/supybot.1']),
|
|
||||||
('share/man/man1', ['man/supybot-test.1']),
|
|
||||||
('share/man/man1', ['man/supybot-botchk.1']),
|
|
||||||
('share/man/man1', ['man/supybot-wizard.1']),
|
|
||||||
('share/man/man1', ['man/supybot-adduser.1']),
|
|
||||||
('share/man/man1', ['man/supybot-reset-password.1']),
|
|
||||||
('share/man/man1', ['man/supybot-plugin-doc.1']),
|
|
||||||
('share/man/man1', ['man/supybot-plugin-create.1']),
|
|
||||||
],
|
|
||||||
|
|
||||||
)
|
data_files=[
|
||||||
|
('share/man/man1', [
|
||||||
|
'man/%s%s.1' % (prefix, name)
|
||||||
|
for name in scripts
|
||||||
|
for prefix in ('supybot', 'limnoria')
|
||||||
|
]),
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79:
|
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79:
|
||||||
|
0
src/scripts/__init__.py
Normal file
0
src/scripts/__init__.py
Normal file
@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env python3
|
|
||||||
|
|
||||||
###
|
###
|
||||||
# Copyright (c) 2003-2004, Jeremiah Fincher
|
# Copyright (c) 2003-2004, Jeremiah Fincher
|
||||||
# Copyright (c) 2009, James McCoy
|
# Copyright (c) 2009, James McCoy
|
||||||
@ -35,8 +33,6 @@
|
|||||||
This is the main program to run Supybot.
|
This is the main program to run Supybot.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import supybot
|
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
@ -78,11 +74,14 @@ except ImportError:
|
|||||||
|
|
||||||
from supybot.version import version
|
from supybot.version import version
|
||||||
|
|
||||||
def main():
|
def run():
|
||||||
|
import supybot.log as log
|
||||||
import supybot.conf as conf
|
import supybot.conf as conf
|
||||||
import supybot.world as world
|
import supybot.world as world
|
||||||
import supybot.drivers as drivers
|
import supybot.drivers as drivers
|
||||||
|
import supybot.ircmsgs as ircmsgs
|
||||||
import supybot.schedule as schedule
|
import supybot.schedule as schedule
|
||||||
|
import supybot.httpserver as httpserver
|
||||||
# We schedule this event rather than have it actually run because if there
|
# We schedule this event rather than have it actually run because if there
|
||||||
# is a failure between now and the time it takes the Owner plugin to load
|
# is a failure between now and the time it takes the Owner plugin to load
|
||||||
# all the various plugins, our registry file might be wiped. That's bad.
|
# all the various plugins, our registry file might be wiped. That's bad.
|
||||||
@ -147,7 +146,7 @@ def main():
|
|||||||
log.info('Total CPU time taken: %.2f seconds.', user+system)
|
log.info('Total CPU time taken: %.2f seconds.', user+system)
|
||||||
log.info('No more Irc objects, exiting.')
|
log.info('No more Irc objects, exiting.')
|
||||||
|
|
||||||
if __name__ == '__main__':
|
def main():
|
||||||
parser = optparse.OptionParser(usage='Usage: %prog [options] configFile',
|
parser = optparse.OptionParser(usage='Usage: %prog [options] configFile',
|
||||||
version='Limnoria %s running on Python %s' %
|
version='Limnoria %s running on Python %s' %
|
||||||
(version, sys.version))
|
(version, sys.version))
|
||||||
@ -355,7 +354,7 @@ if __name__ == '__main__':
|
|||||||
import supybot.callbacks as callbacks
|
import supybot.callbacks as callbacks
|
||||||
import supybot.plugins.Owner as Owner
|
import supybot.plugins.Owner as Owner
|
||||||
|
|
||||||
# These may take some resources, and it does not need to be run while boot, so
|
# This may take some resources, and it does not need to run while booting, so
|
||||||
# we import it as late as possible (but before plugins are loaded).
|
# we import it as late as possible (but before plugins are loaded).
|
||||||
import supybot.httpserver as httpserver
|
import supybot.httpserver as httpserver
|
||||||
|
|
||||||
@ -364,9 +363,9 @@ if __name__ == '__main__':
|
|||||||
if options.profile:
|
if options.profile:
|
||||||
import profile
|
import profile
|
||||||
world.profiling = True
|
world.profiling = True
|
||||||
profile.run('main()', '%s-%i.prof' % (nick, time.time()))
|
profile.run('run()', '%s-%i.prof' % (nick, time.time()))
|
||||||
else:
|
else:
|
||||||
main()
|
run()
|
||||||
|
|
||||||
|
|
||||||
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79:
|
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79:
|
@ -53,7 +53,7 @@ def debug(s):
|
|||||||
s += os.linesep
|
s += os.linesep
|
||||||
sys.stdout.write(s)
|
sys.stdout.write(s)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
def main()
|
||||||
# XXX I wanted this for conf.version, but this will create directories. We
|
# XXX I wanted this for conf.version, but this will create directories. We
|
||||||
# really need to refactor conf so it either doesn't create directories, or
|
# really need to refactor conf so it either doesn't create directories, or
|
||||||
# so that static information (like the version) can be imported from
|
# so that static information (like the version) can be imported from
|
||||||
@ -135,4 +135,7 @@ if __name__ == '__main__':
|
|||||||
else:
|
else:
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
|
|
||||||
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79:
|
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79:
|
@ -211,7 +211,7 @@ readmeTemplate = '''
|
|||||||
%s
|
%s
|
||||||
'''.lstrip()
|
'''.lstrip()
|
||||||
|
|
||||||
def main():
|
def _main():
|
||||||
global copyright
|
global copyright
|
||||||
global license
|
global license
|
||||||
parser = optparse.OptionParser(usage='Usage: %prog [options]',
|
parser = optparse.OptionParser(usage='Usage: %prog [options]',
|
||||||
@ -307,13 +307,16 @@ def main():
|
|||||||
|
|
||||||
print('Your new plugin template is in the %s directory.' % name)
|
print('Your new plugin template is in the %s directory.' % name)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
def main():
|
||||||
try:
|
try:
|
||||||
main()
|
_main()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print()
|
print()
|
||||||
output("""It looks like you cancelled out of this script before it was
|
output("""It looks like you cancelled out of this script before it was
|
||||||
finished. Obviously, nothing was written, but just run this script
|
finished. Obviously, nothing was written, but just run this script
|
||||||
again whenever you want to generate a template for a plugin.""")
|
again whenever you want to generate a template for a plugin.""")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
|
|
||||||
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79:
|
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79:
|
@ -276,7 +276,7 @@ def genDoc(m, options):
|
|||||||
finally:
|
finally:
|
||||||
fd.close()
|
fd.close()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
def main():
|
||||||
import glob
|
import glob
|
||||||
import os.path
|
import os.path
|
||||||
import optparse
|
import optparse
|
||||||
@ -349,4 +349,8 @@ if __name__ == '__main__':
|
|||||||
shutil.rmtree(conf.supybot.directories.conf())
|
shutil.rmtree(conf.supybot.directories.conf())
|
||||||
shutil.rmtree(conf.supybot.directories.data())
|
shutil.rmtree(conf.supybot.directories.data())
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
|
|
||||||
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=78:
|
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=78:
|
@ -40,7 +40,7 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
import optparse
|
import optparse
|
||||||
|
|
||||||
def main():
|
def _main():
|
||||||
import supybot.log as log
|
import supybot.log as log
|
||||||
import supybot.conf as conf
|
import supybot.conf as conf
|
||||||
conf.supybot.log.stdout.setValue(False)
|
conf.supybot.log.stdout.setValue(False)
|
||||||
@ -102,10 +102,13 @@ def main():
|
|||||||
ircdb.users.close()
|
ircdb.users.close()
|
||||||
print('User %s\'s password reset!' % name)
|
print('User %s\'s password reset!' % name)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
def main():
|
||||||
try:
|
try:
|
||||||
main()
|
main()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
|
|
||||||
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79:
|
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79:
|
@ -119,7 +119,7 @@ class path(str):
|
|||||||
def __eq__(self, other):
|
def __eq__(self, other):
|
||||||
return self._r.split(self) == self._r.split(other)
|
return self._r.split(self) == self._r.split(other)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
def main():
|
||||||
import glob
|
import glob
|
||||||
import os.path
|
import os.path
|
||||||
import optparse
|
import optparse
|
||||||
@ -243,4 +243,8 @@ if __name__ == '__main__':
|
|||||||
else:
|
else:
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
|
|
||||||
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79:
|
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79:
|
@ -166,7 +166,7 @@ def getDirectoryName(default, basedir=os.curdir, prompt=True):
|
|||||||
return (dir, os.path.dirname(orig_dir))
|
return (dir, os.path.dirname(orig_dir))
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def _main():
|
||||||
import supybot.version as version
|
import supybot.version as version
|
||||||
parser = optparse.OptionParser(usage='Usage: %prog [options]',
|
parser = optparse.OptionParser(usage='Usage: %prog [options]',
|
||||||
version='Supybot %s' % version.version)
|
version='Supybot %s' % version.version)
|
||||||
@ -815,9 +815,9 @@ def main():
|
|||||||
just have to start it like you start all your other Python scripts.""" % \
|
just have to start it like you start all your other Python scripts.""" % \
|
||||||
(filename, filename))
|
(filename, filename))
|
||||||
|
|
||||||
if __name__ == '__main__':
|
def main():
|
||||||
try:
|
try:
|
||||||
main()
|
_main()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
# We may still be using bold text when exiting during a prompt
|
# We may still be using bold text when exiting during a prompt
|
||||||
if questions.useBold:
|
if questions.useBold:
|
||||||
@ -829,4 +829,8 @@ if __name__ == '__main__':
|
|||||||
it was done. Unfortunately, I didn't get to write anything to file.
|
it was done. Unfortunately, I didn't get to write anything to file.
|
||||||
Please run the wizard again to completion.""")
|
Please run the wizard again to completion.""")
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
|
|
||||||
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79:
|
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79:
|
Loading…
Reference in New Issue
Block a user