summaryrefslogtreecommitdiffstats
path: root/modules/admin.py
diff options
context:
space:
mode:
authorSean B. Palmer <http://inamidst.com/sbp/>2008-03-10 19:58:28 +0000
committerSean B. Palmer <http://inamidst.com/sbp/>2008-03-10 19:58:28 +0000
commitfb2cd452e963b8bc048161036903cd82d3b113f0 (patch)
tree81182d25fc19f538292b52a9e7c697447d5e6548 /modules/admin.py
parent5cad6661c9437832e23469aba2c9f04d94b734ee (diff)
downloadbot-fb2cd452e963b8bc048161036903cd82d3b113f0.tar.gz
bot-fb2cd452e963b8bc048161036903cd82d3b113f0.tar.bz2
bot-fb2cd452e963b8bc048161036903cd82d3b113f0.zip
Some documentation and minor fixes.
Diffstat (limited to 'modules/admin.py')
-rwxr-xr-xmodules/admin.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/admin.py b/modules/admin.py
index de2a7a7..24b8fb6 100755
--- a/modules/admin.py
+++ b/modules/admin.py
@@ -8,22 +8,27 @@ http://inamidst.com/phenny/
"""
def join(phenny, input):
+ """Join the specified channel. This is an admin-only command."""
# Can only be done in privmsg by an admin
if input.sender.startswith('#'): return
if input.admin:
phenny.write(['JOIN'], input.group(2))
join.commands = ['join']
join.priority = 'low'
+join.example = '.join #example'
def part(phenny, input):
+ """Part the specified channel. This is an admin-only command."""
# Can only be done in privmsg by an admin
if input.sender.startswith('#'): return
if input.admin:
phenny.write(['PART'], input.group(2))
part.commands = ['part']
part.priority = 'low'
+part.example = '.part #example'
def quit(phenny, input):
+ """Quit from the server. This is an owner-only command."""
# Can only be done in privmsg by the owner
if input.sender.startswith('#'): return
if input.owner: