diff options
Diffstat (limited to 'modules/admin.py')
-rwxr-xr-x | modules/admin.py | 5 |
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: |