Limnoria/plugins/Dict
2024-05-05 22:18:14 +02:00
..
local Fix SyntaxWarning on Python 3.12 2024-05-05 22:18:14 +02:00
locales all: Update .pot and .po files 2022-02-06 00:14:47 +01:00
__init__.py Revert generic 'The Limnoria Contributors' in copyright notices 2021-10-17 09:57:55 +02:00
config.py Revert generic 'The Limnoria Contributors' in copyright notices 2021-10-17 09:57:55 +02:00
messages.pot all: Update .pot and .po files 2022-02-06 00:14:47 +01:00
plugin.py Revert generic 'The Limnoria Contributors' in copyright notices 2021-10-17 09:57:55 +02:00
README.rst supybot-plugin-doc: Remove extra space + regenerate all READMEs. 2021-12-04 03:19:12 +01:00
test.py Revert generic 'The Limnoria Contributors' in copyright notices 2021-10-17 09:57:55 +02:00

.. _plugin-Dict:

Documentation for the Dict plugin for Supybot
=============================================

Purpose
-------

Commands that use the dictd protocol to define words.

In order to use this plugin you must have the following modules
installed:

* dictclient: http://quux.org:70/devel/dictclient

Usage
-----

This plugin provides a function to look up words from different
dictionaries.

.. _commands-Dict:

Commands
--------

.. _command-dict-dict:

dict [<dictionary>] <word>
  Looks up the definition of <word> on the dictd server specified by the supybot.plugins.Dict.server config variable.

.. _command-dict-dictionaries:

dictionaries takes no arguments
  Returns the dictionaries valid for the dict command.

.. _command-dict-random:

random takes no arguments
  Returns a random valid dictionary.

.. _command-dict-synonym:

synonym <word> [<word> ...]
  Gets a random synonym from the Moby Thesaurus (moby-thesaurus) database. If given many words, gets a random synonym for each of them. Quote phrases to have them treated as one lookup word.

.. _conf-Dict:

Configuration
-------------

.. _conf-supybot.plugins.Dict.default:


supybot.plugins.Dict.default
  This config variable defaults to "*", is network-specific, and is channel-specific.

  Determines the default dictionary the bot will ask for definitions in. If this value is '*' (without the quotes) the bot will use all dictionaries to define words.

.. _conf-supybot.plugins.Dict.public:


supybot.plugins.Dict.public
  This config variable defaults to "True", is not network-specific, and is not channel-specific.

  Determines whether this plugin is publicly visible.

.. _conf-supybot.plugins.Dict.server:


supybot.plugins.Dict.server
  This config variable defaults to "dict.org", is not network-specific, and is not channel-specific.

  Determines what server the bot will retrieve definitions from.

.. _conf-supybot.plugins.Dict.showDictName:


supybot.plugins.Dict.showDictName
  This config variable defaults to "True", is network-specific, and is channel-specific.

  Determines whether the bot will show which dictionaries responded to a query, if the selected dictionary is '*'.