# myplugs/gouki.py
#
#

from gozerbot.callbacks import jcallbacks
from gozerbot.commands import cmnds

def preautoreply(bot, ievent):
    """ check where autoreply callbacks should fire """
    if not ievent.usercmnd and not ievent.groupchat:
        return 1

def cbautoreply(bot, ievent):
    """ do the auto reply """
    ievent.reply('available commands: ', cmnds.list('ANY'))

jcallbacks.add('Message', cbautoreply, preautoreply)
