rpathsync / kibot (http://linux.duke.edu/projects/kibot/)
IRC Bot, originally written at Duke University. This branch contains some additional plugins and bug fixes.
Clone this repository (size: 625.1 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/rpathsync/kibot/
| commit 64: | b6c29253d2ee |
| parent 63: | d895cffeb6a7 |
| branch: | default |
prompt for please
15 months ago
Changed (Δ319 bytes):
raw changeset »
modules/please.py (16 lines added, 0 lines removed)
Up to file-list modules/please.py:
| … | … | @@ -18,3 +18,19 @@ class please(kibot.BaseModule.BaseModule |
18 |
18 |
f.close() |
19 |
19 |
else: |
20 |
20 |
cmd.reply("sorry, I don't understand") |
21 |
||
22 |
def _sayPlease(self, cmd): |
|
23 |
""" |
|
24 |
Prompt for please. |
|
25 |
""" |
|
26 |
||
27 |
cmd.reply("you didn't say please") |
|
28 |
||
29 |
_cperm = 1 |
|
30 |
def aggregate(self, cmd): |
|
31 |
self._sayPlease(cmd) |
|
32 |
||
33 |
_cperm = 1 |
|
34 |
def clear(self, cmd): |
|
35 |
if cmd.args == 'clear the cache': |
|
36 |
self._sayPlease(cmd) |
