Skip to content

Regex system #8

Description

@e-dreyer

Problem

MastoBot-3D currently implements a reporting system, allowing users to mention the bot as @3dprinting $report <some report message>.

This allows for a custom response to reply to the report with a templating system similar to the proposed one in #7 and also sends a message to the moderators.

This functionality can be extended to allow for more advanced commands to be sent to the bot and is generic enough to be part of MastoBot

Solution

A possinle solution would be to allow users to supply MastoBot with a list of regex expressions and a list of callbacks. Thus allowing the user to implement actions similar to how abstract class methods are currently used to implement custom behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions