Skip to content

Instantly share code, notes, and snippets.

@passcod
Created November 24, 2012 00:47
Show Gist options
  • Select an option

  • Save passcod/4137864 to your computer and use it in GitHub Desktop.

Select an option

Save passcod/4137864 to your computer and use it in GitHub Desktop.
•AZ•BOT• channel mgmt tools
# 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