Skip to content

Add commands for manipulating factoid config live from the bot #1

@simcop2387

Description

@simcop2387

It'd be nice if some commands for examining or manipulating the factoid config were present. Also use some of this for documentation.

Things like:

  • factoid_config set alias example.com:#namespace to freenode.net:#perlbot [--recurse]
    This sets the namespace alias for the channel #namespace on server example.com to refer to freenode.net:#perlbot
  • factoid_config tree example.com:#namespace
    This gives a list of how the factoids are resolved: example.com:#namespace -> parentserver:#parentchannel -> ... -> *:##NULL
  • factoid_config dump example.com:#namespace
    Give back a JSON encoded copy of the config for this channel
  • factoid_config set command_prefix !
  • factoid_config unset command_prefix
    Control the factoid command prefix, only used in #regex right now, for a default factoid handler running in the channel.
    This lets things like the following work:
<simcop2387> !rehelp

<perlbot> simcop2387: Please share a https://regex101.com/ link containing your regex and sample data, stay as long as possible, and we'll do our best to assist you ASAP.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions