Skip to content

Commit a982469

Browse files
committed
Readme and correction of optargs & configuration
modified: README.md modified: pyircbot.py
1 parent 9919400 commit a982469

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
pyircbot
22
========
33

4-
A simple python-twisted IRC bot with greetings and karma functionalities
4+
A simple python-twisted IRC bot with greetings and karma functionalities.
55

6-
# Usage
6+
### Usage
77

88
`$ python pyircbot.py --help`
9+
10+
### TODO
11+
12+
# Greetings
13+
# Dice rolling
14+
# Last tweets
15+
# Last news
16+
# Random BOT responses

pyircbot.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,25 @@
2020
parser.add_option("-s", "--server", dest="server",
2121
action="store",
2222
default = config_manager.server_address,
23-
help="IRC server address, default ")
23+
help="IRC server address, default %s" % config_manager.server_address)
2424
parser.add_option("-p", "--port", dest="port",
2525
action="store",
2626
type="int",
2727
default = config_manager.server_port,
28-
help="Server port, default 6667")
28+
help="Server port, default %s" % config_manager.server_port)
2929
parser.add_option("-c", "--channel", dest="channel",
3030
action="store",
3131
type="string",
3232
default = config_manager.channel,
33-
help="Channel name, default ")
33+
help="Channel name, default %s" % config_manager.channel)
3434
parser.add_option("-n", "--nick", dest="nick",
3535
action="store",
3636
default = config_manager.bot_nick,
37-
help="Bot nickname")
37+
help="Bot nickname %s" % config_manager.bot_nick)
38+
# TODO (sentenza) use the config manager class
3839
parser.add_option("-v", "--verbose", dest="verbose",
3940
action="store_true",
40-
help="Make pyircbot loudy")
41+
help="Print a lot of stuff...")
4142
options, args = parser.parse_args()
4243

4344
# TODO (sentenza) Check the possibility of writing the config file via optparse args

0 commit comments

Comments
 (0)