2021-04-05 17:29:49 +02:00
.. _plugin-Dict:
Documentation for the Dict plugin for Supybot
=============================================
Purpose
-------
2021-12-04 02:50:28 +01:00
2021-04-05 17:29:49 +02:00
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
-----
2021-12-04 02:50:28 +01:00
2021-04-05 17:29:49 +02:00
This plugin provides a function to look up words from different
dictionaries.
2021-04-05 22:56:40 +02:00
.. _commands-Dict:
2021-04-05 17:29:49 +02:00
Commands
--------
2021-12-04 02:50:28 +01:00
2021-04-17 20:09:33 +02:00
.. _command-dict-dict:
2021-04-05 22:56:40 +02:00
2021-04-05 17:29:49 +02:00
dict [<dictionary> ] <word>
Looks up the definition of <word> on the dictd server specified by the supybot.plugins.Dict.server config variable.
2021-04-17 20:09:33 +02:00
.. _command-dict-dictionaries:
2021-04-05 22:56:40 +02:00
2021-04-05 17:29:49 +02:00
dictionaries takes no arguments
Returns the dictionaries valid for the dict command.
2021-04-17 20:09:33 +02:00
.. _command-dict-random:
2021-04-05 22:56:40 +02:00
2021-04-05 17:29:49 +02:00
random takes no arguments
Returns a random valid dictionary.
2021-04-17 20:09:33 +02:00
.. _command-dict-synonym:
2021-04-05 22:56:40 +02:00
2021-04-05 17:29:49 +02:00
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.
2021-04-17 20:09:33 +02:00
.. _conf-Dict:
2021-04-05 17:29:49 +02:00
Configuration
-------------
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.Dict.default:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Dict.default
2021-12-04 03:19:12 +01:00
This config variable defaults to "*", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
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.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.Dict.public:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Dict.public
2021-12-04 03:19:12 +01:00
This config variable defaults to "True", is not network-specific, and is not channel-specific.
2021-04-05 17:29:49 +02:00
Determines whether this plugin is publicly visible.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.Dict.server:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Dict.server
2021-12-04 03:19:12 +01:00
This config variable defaults to "dict.org", is not network-specific, and is not channel-specific.
2021-04-05 17:29:49 +02:00
Determines what server the bot will retrieve definitions from.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.Dict.showDictName:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Dict.showDictName
2021-12-04 03:19:12 +01:00
This config variable defaults to "True", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
Determines whether the bot will show which dictionaries responded to a query, if the selected dictionary is '*'.