hcoopmeetbotlogic.handler

IRC request and message handlers.

Module Contents

hcoopmeetbotlogic.handler.configure(logger: logging.Logger, conf_dir: str) None

Configure the plugin.

Parameters:
  • logger (Logger) – Python logger instance that should be used during processing

  • conf_dir (str) – Limnoria bot conf directory to load configuration from

hcoopmeetbotlogic.handler.irc_message(context: hcoopmeetbotlogic.interface.Context, message: hcoopmeetbotlogic.interface.Message) None

Handle an IRC message from the bot.

Parameters:
  • context (Context) – Context for the message

  • message (Message) – Message to handle

hcoopmeetbotlogic.handler.outbound_message(context: hcoopmeetbotlogic.interface.Context, message: hcoopmeetbotlogic.interface.Message) None

Handle an outbound message from the bot.

Parameters:
  • context (Context) – Context for the message

  • message (Message) – Message to handle

hcoopmeetbotlogic.handler.meetversion(context: hcoopmeetbotlogic.interface.Context) None

Reply with a string describing the version of the plugin.

hcoopmeetbotlogic.handler.listmeetings(context: hcoopmeetbotlogic.interface.Context) None

List all currently-active meetings.

Parameters:

context (Context) – Context for a message or command

hcoopmeetbotlogic.handler.savemeetings(context: hcoopmeetbotlogic.interface.Context) None

Save all currently active meetings.

Parameters:

context (Context) – Context for a message or command

hcoopmeetbotlogic.handler.addchair(context: hcoopmeetbotlogic.interface.Context, channel: str, network: str, nick: str) None

Add a nickname as a chair to the meeting.

Parameters:
  • context (Context) – Context for a message or command

  • channel (str) – Channel to add the chair for

  • network (str) – Network to add the chair for

  • nick (str) – Nickname to add as the chair

hcoopmeetbotlogic.handler.deletemeeting(context: hcoopmeetbotlogic.interface.Context, channel: str, network: str, save: bool) None

Delete a meeting, moving it out of active state without actually completing it.

The meeting will not be maintained in the list of recent meetings, since it isn’t technically completed.

Parameters:
  • context (Context) – Context for a message or command

  • channel (str) – Channel to delete the meeting for

  • network (str) – Network to delete the meeting for

  • save (bool) – Whether to save the meeting before deactivating it

hcoopmeetbotlogic.handler.recent(context: hcoopmeetbotlogic.interface.Context) None

List recent meetings for admin purposes.

Parameters:

context (Context) – Context for a message or command

hcoopmeetbotlogic.handler.commands(context: hcoopmeetbotlogic.interface.Context) None

List available commands.

Parameters:

context (Context) – Context for a message or command