display list of countdown items
This commit is contained in:
parent
4b30b2fb68
commit
d879ee1c92
|
@ -146,6 +146,11 @@ def sub_countdown(connection, event, nick, userhost, replypath, what, admin_unlo
|
||||||
|
|
||||||
config.set('countdown', item, target.astimezone(tzutc()).isoformat())
|
config.set('countdown', item, target.astimezone(tzutc()).isoformat())
|
||||||
connection.privmsg(replypath, 'added countdown item')
|
connection.privmsg(replypath, 'added countdown item')
|
||||||
|
elif whats[1] == 'list':
|
||||||
|
try:
|
||||||
|
liststr = ', '.join(config.options('countdown'))
|
||||||
|
connection.privmsg(replypath, liststr)
|
||||||
|
except NoSectionError: pass
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
timestr = config.get('countdown', whats[1])
|
timestr = config.get('countdown', whats[1])
|
||||||
|
|
Loading…
Reference in New Issue