1 from twisted.python import usage |
|
2 |
|
3 import nexus |
|
4 |
|
5 class NexusOptions (usage.Options) : |
|
6 optParameters = [ |
|
7 ( "uid", "u", "fixbot", "user to run as" ), |
|
8 ( "gid", "g", "nogroup", "group to run as" ), |
|
9 ( "irc-hostname", "s", "irc.fixme.fi", "IRC server hostname", ), |
|
10 ( "irc-port", "p", 6667, "IRC server port", int ), |
|
11 ( "irc-nickname", "n", "FixBotDev", "IRC nickname", ), |
|
12 ( "irc-username", "U", "fixbot", "IRC username", ), |
|
13 ( "irc-channel", "c", "#fixme-test", "IRC channel", ), |
|
14 ( "api-listen" "l", "127.0.0.1", "address for API server to listen on" ), |
|
15 ( "api-port", "P", 34888, "port for API server to listen on", int ), |
|
16 ] |
|
17 |
|
18 optFlags = [ |
|
19 |
|
20 ] |
|
21 |
|
22 def makeService (config) : |
|
23 # app = service.Application('fixbot', uid=config['uid'], gid=config['gid']) |
|
24 return nexus.makeService(config) |
|
25 |
|