.. _fbf.drivers.console.event: event ~~~~~ .. automodule:: fbf.drivers.console.event :show-inheritance: :members: :undoc-members: CODE ---- :: # fbf/console/event.py # # """ a console event. """ .. _fbf.drivers.console.event_fbf_imports: fbf imports -------------- :: from fbf.lib.eventbase import EventBase from fbf.lib.channelbase import ChannelBase from fbf.lib.errors import NoInput .. _fbf.drivers.console.event_basic_imports: basic imports ---------------- :: import getpass import logging import re .. _fbf.drivers.console.event_ConsoleEvent_class: ConsoleEvent class --------------------- :: class ConsoleEvent(EventBase): def parse(self, bot, input, console, *args, **kwargs): """ overload this. """ if not input: raise NoInput() self.bot = bot self.console = console self.nick = getpass.getuser() self.auth = self.nick + '@' + bot.cfg.uuid self.userhost = self.auth self.origin = self.userhost self.txt = input self.channel = self.userhost self.cbtype = self.cmnd = str("CONSOLE") self.showall = True self.prepare() return self