WikiBot: Difference between revisions

From Synthesis Infrastructures
Tags: Mobile edit Mobile web edit
No edit summary
Line 8: Line 8:
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)
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, once created, will also be posted to [[Discord Messages]] and in the <code>#wikibot</code> channel so they can be followed directly from discord.
 
== Wikilink Syntax ==


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!
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!

Revision as of 00:05, 5 November 2022


WikiBot
Homepage https://git.jon-e.net/jonny/wiki-postbot
Description A bot to use wikilinks from within discord
Repository URL https://git.jon-e.net/jonny/wiki-postbot
Contributors Jonny Saunders

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, once created, will also be posted to Discord Messages and in the #wikibot channel so they can be followed directly from discord.

Wikilink Syntax

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]] where n and m 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, and n == 0 indicates the initiating message.
    • End specified - [[^{,m}LINK]] OR [[^{m}LINK]] - include the initiating message and the m messages above it.
    • Start specified - [[^{n,}LINK]] - include all preceding messages in the thread before the nth message


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


Status Updates

sneakers-the-rat#testing-wikibot22-10-17 01:38:21

i'll leave the bot running for a lil bit but yeah it's just running on my laptop for now, will move it over to the linode running the wiki when i go to switch the url. made a page to document the WikiBot#Status Updates


TODO

  • Implement n-back links
  • Implement fully qualified semantic wikilinks
  • File/image Upload from discord
  • Cleanup & actual in-place docs omg.
  • Parse markdown -> wikitext in messages.
  • Create reference links in a list like [ [source#section->target#section] ] to avoid orphan pages


sneakers-the-rat#wikibot22-11-02 08:14:45

omg lmao WikiBot#TODO Don't make a separate page using semantic wikilinks lol


Feature Requests

sneakers-the-rat#fedi22-11-02 08:17:07

Then i just made a page to link to the pages. There's not really a well defined way to do meta-categorization like that in-medium as far as I'm aware, but am happy to receive WikiBot#Feature Requests about it

Discord

sneakers-the-rat#off-topic22-11-03 11:27:24

this is almost exactly the idea with the WikiBot that pushes to a Semantic Wiki, and good to have a name in Gradual Enrichment. looking forward to digging though the references and finishing that piece^ tomorrow. (and finishing the n-back linking syntax so I can just directly include the piece in the annotation that is this message). thanks for sharing 🙂