Created
November 24, 2012 00:47
-
-
Save passcod/4137864 to your computer and use it in GitHub Desktop.
•AZ•BOT• channel mgmt tools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # coding: utf-8 | |
| """ | |
| Channel management | |
| Depends on: | |
| core mods (azbot >= 1.4.0) | |
| """ | |
| import _util | |
| def join(opts, args=[]): | |
| if len(args) == 0: | |
| _util.give_help(opts, "<#channel> …") | |
| return | |
| for chan in args: | |
| opts['bot'].join(chan) | |
| def part(opts, args=[]): | |
| if len(args) == 0: | |
| _util.give_help(opts, "<#channel> …") | |
| return | |
| for chan in args: | |
| opts['bot'].part(chan) | |
| _util.register(join, 'admin', 'gtfi') | |
| _util.register(part, 'admin', 'gtfo') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment