Summary: | Add a way for the bots to send messages to IRC | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Adam Barth <abarth> | ||||||||||
Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> | ||||||||||
Status: | RESOLVED FIXED | ||||||||||||
Severity: | Normal | CC: | eric | ||||||||||
Priority: | P2 | ||||||||||||
Version: | 528+ (Nightly build) | ||||||||||||
Hardware: | Other | ||||||||||||
OS: | OS X 10.5 | ||||||||||||
Attachments: |
|
Description
Adam Barth
2010-03-17 12:48:44 PDT
Created attachment 50938 [details]
Patch
Comment on attachment 50938 [details]
Patch
OK. So I think this would need a few more comments.
At least to separate out the different interfaces that IRCBot is implementing.
IRCBot shoudl consider taking channel and nickname, etc. as arguments. They obviously could default to the current ones. Unless the model woudl be that you would subclass it to change the channel?
I think this all makes sense.
It also needs another comment in autoinstalled/__init__.py to indicate why both imports are needed.
Comment on attachment 50938 [details]
Patch
I think it makes sense to test ThreadedMessageQueue, even if we don't test the threaded nature of it. just to make sure that stop() does what you expect, etc.
Comment on attachment 50938 [details]
Patch
You might add a comment to "setDeamon()"
We could use a mock "connection" object for testing, but it may not be worth it. Tests for the queue make sense. The rest is probably OK as is.
Comment on attachment 50938 [details]
Patch
Actually, it woudl be nice to have a full-system test.
whereby which we mock out the connection, and call "post" and then "disconnect" and make sure that it posts before disconnect.
That would be a minimal test of the API and is probably worth the trouble.
Created attachment 50951 [details]
Patch
Comment on attachment 50951 [details]
Patch
OK. I'm sold.
Created attachment 50953 [details]
Patch
Created attachment 50954 [details]
Patch for landing
Comment on attachment 50954 [details] Patch for landing Clearing flags on attachment: 50954 Committed r56125: <http://trac.webkit.org/changeset/56125> All reviewed patches have been landed. Closing bug. |