bitbot icon indicating copy to clipboard operation
bitbot copied to clipboard

General Improvements to the Wikipedia Module

Open examknow opened this issue 5 years ago • 0 comments

This PR adds a few changes to the way the Wikipedia module works. The Wikipedia module will now:

  • Query the first 500 characters of a WP article and return it to IRC (as it has always done)
  • Determine if a page is ambiguous and will return the first 10 (can be changed via config) pages it links to. This feature will probably only work on enwiki since the format for disambiguation pages are different across wikis.
  • Allow chanops to change the language of Wikipedia that is used when using the module via 'config c'. This can also be changed for users via 'config u'.
  • Allow chanops to enable auto wiki links in their channels. For example, if a user types I want an [[Apple]] to eat, BitBot will return information about the apple article on Wikipedia.

examknow avatar Oct 09 '20 00:10 examknow