diff options
author | Richard Darst <rkd@zgib.net> | 2009-06-26 02:50:38 (GMT) |
---|---|---|
committer | Richard Darst <rkd@zgib.net> | 2009-06-26 02:50:38 (GMT) |
commit | 43e3927e11fc34ab11b2f0839414ff5a42ae1390 (patch) | |
tree | 72f98c969cb8b04740969faf70ee534ccec28b72 /meeting.py | |
parent | fbb07f4c884d9d8127e1f0d0ed5e63c2a1f8198a (diff) |
Another update to configurability of start/endmeeting messages
darcs-hash:20090626025038-82ea9-7f5033e24722986a2f4df22e7a71b0f5b5c512d7.gz
Diffstat (limited to 'meeting.py')
-rw-r--r-- | meeting.py | 20 |
1 files changed, 11 insertions, 9 deletions
@@ -77,16 +77,16 @@ class Config(object): # you have to use doubled percent signs. Also, it gets split by # '\n' and each part between newlines get said in a separate IRC # message. - startMeetingMessage = ("Meeting started %%(starttime)s %%(timeZone)s. " - "The chair is %%(chair)s. Information about MeetBot at %s.\n" + startMeetingMessage = ("Meeting started %(starttime)s %(timeZone)s. " + "The chair is %(chair)s. Information about MeetBot at " + "%(MeetBotInfoURL)s.\n" "Useful Commands: #action #agreed #halp #info #idea #link " - "#topic.")%MeetBotInfoURL - endMeetingMessage = ("Meeting ended %%(endtime)s %%(timeZone)s. " - "Information about MeetBot at %s .\n" - "Minutes: %%(urlBasename)s.html\n" - "Minutes (text): %%(urlBasename)s.txt\n" - "Log: %%(urlBasename)s.log.html")%\ - MeetBotInfoURL + "#topic.") + endMeetingMessage = ("Meeting ended %(endtime)s %(timeZone)s. " + "Information about MeetBot at %(MeetBotInfoURL)s .\n" + "Minutes: %(urlBasename)s.html\n" + "Minutes (text): %(urlBasename)s.txt\n" + "Log: %(urlBasename)s.log.html") input_codec = 'utf-8' output_codec = 'utf-8' def enc(self, text): @@ -195,6 +195,7 @@ class MeetingCommands(object): self.starttime = time_ timeZone = self.config.timeZone chair = self.owner + MeetBotInfoURL = self.config.MeetBotInfoURL message = self.config.startMeetingMessage%locals() for messageline in message.split('\n'): self.reply(messageline) @@ -210,6 +211,7 @@ class MeetingCommands(object): endtime = time.asctime(time_) timeZone = self.config.timeZone urlBasename = self.config.filename(url=True) + MeetBotInfoURL = self.config.MeetBotInfoURL message = self.config.endMeetingMessage%locals() for messageline in message.split('\n'): self.reply(messageline) |