Libera-Chat / sable

GNU Affero General Public License v3.0
88 stars 8 forks source link

WIP: implement HELP #129

Open internet-catte opened 5 months ago

internet-catte commented 5 months ago

this does not work, or even compile yet, but I wanted some advice/guidance.

my plan here is:

  1. document commands as doc comments
  2. grab the doc comment
  3. and store it somewhere (where?)
  4. return that for HELP cmd

Right now i've achieved 1 and 2, and have the mechanism of 4 mapped out, so the big question is how to link things up.

A similar method could be used for services help, but because of the limitations of HELP (topics can only be one word), this would have to be done in the typical services way (NS HELP subcmd, CS HELP subcmd). This might be doable in this PR once the details are ironed out.

Listing help topics is pretty straightforward, just get all the help topics and print them out. I've done it chunked to have something similar to solanum's output.