WikiBot: Difference between revisions
(Created page with "The Wikibot links the Discord to the wiki :) == Wikilinks == Messages with <nowiki>Wikilinks</nowiki> will be added to the wiki. The bot understands an extended wikilink syntax intended to make archiving threads easier. All messages added by the bot will also be indexed in Discord Messages so they don't get lost! * <code><nowiki>Regular Wikilinks</nowiki></code> - Messages with (potentially multiple) regular wikilinks will be embedded into the relevant...") |
No edit summary |
||
Line 1: | Line 1: | ||
The Wikibot links the [[Discord]] to the wiki :) | The Wikibot links the [[Discord]] to the wiki :) | ||
Its source is at: [[Has git repo::https://git.jon-e.net/jonny/wiki-postbot]], and pull requests are welcome (hassle [[Jonny]] to figure out how to allow account creation in their gitea instance) | |||
== Wikilinks == | == Wikilinks == |
Revision as of 01:31, 17 October 2022
The Wikibot links the Discord to the wiki :)
Its source is at: https://git.jon-e.net/jonny/wiki-postbot, and pull requests are welcome (hassle Jonny to figure out how to allow account creation in their gitea instance)
Wikilinks
Messages with [[Wikilinks]] will be added to the wiki. The bot understands an extended wikilink syntax intended to make archiving threads easier. All messages added by the bot will also be indexed in Discord Messages so they don't get lost!
[[Regular Wikilinks]]
- Messages with (potentially multiple) regular wikilinks will be embedded into the relevant page in a section titled "Discord" in the order in which they were received.[[Wikilinks#With Section]]
- Adding a#
-delimited section will embed the message in the relevant section, rather than under "Discord"
N-Back Wikilinks
Currently implemented as a parser, but grabbing multiple messages in a thread is not yet implemented.
- Preceding Message -
[[^LINK]]
- Entire Preceding Thread -
[[^*LINK]]
- Ranges
- Fully specified -
[[^{n,m}LINK]]
wheren
andm
are the start and end of the range to be included, inclusive. eg.[[^{2,5}LINK]]
would specify four messages: the 2nd one above the initiating message through the 5th, andn == 0
indicates the initiating message. - End specified -
[[^{,m}LINK]]
OR[[^{m}LINK]]
- include the initiating message and them
messages above it. - Start specified -
[[^{n,}LINK]]
- include all preceding messages in the thread before thenth
message
- Fully specified -
Commands
/debug on,off
Turn debugging messages on or off (for everyone) - this will print things like the full text of the detected wikilinks as replies to
Requests/TODO
- Implement n-back links
- Implement Semantic Wikilinks
- File Upload from discord