a console event.
Bases: fbf.lib.eventbase.EventBase
overload this.
# fbf/console/event.py # # """ a console event. """
from fbf.lib.eventbase import EventBase from fbf.lib.channelbase import ChannelBase from fbf.lib.errors import NoInput
import getpass import logging import re
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