misc commands.
no arguments - show where to fetch the bot source.
no arguments - give test response.
# fbf/plugs/core/misc.py # # """ misc commands. """
from fbf.utils.exception import handle_exception from fbf.lib.commands import cmnds from fbf.lib.examples import examples from fbf.lib.persiststate import UserState
import time import os import threading import _thread import copy
cpy = copy.deepcopy
def handle_test(bot, ievent): """ no arguments - give test response. """ ievent.reply("%s (%s) - %s - it works!" % (ievent.auth or ievent.userhost, ievent.nick, ievent.user.data.name)) cmnds.add('test', handle_test, ['USER', 'GUEST']) examples.add('test', 'give test response',' test')
def handle_source(bot, ievent): """ no arguments - show where to fetch the bot source. """ ievent.reply('see http://github.com/feedbackflow/fbfbot and http:///docs/fbfbot') cmnds.add('source', handle_source, ['USER', 'GUEST']) examples.add('source', 'show source url', 'source')