Wordnik
Configuring the Wordnik Module
The Wordnik module provides commands to fetch definitions for specific words or random words from the Wordnik API.
Configuration Options
Set API Key
- Usage:
,config bot wordnik-api-key <your_api_key>
Commands and Usage
Define a Term
Fetches the definition for a provided term.
- Usage:
,define <term>
- Example:
,define serendipity
Define a Random Word
Fetches and defines a random word.
- Usage:
,randomword
Examples
- To define a specific term:
,define serendipity
- Response:
serendipity: The occurrence and development of events by chance in a happy or beneficial way.
- Response:
- To get a random word and its definition:
,randomword
- Response:
Random Word: elixir - Definition: A magical or medicinal potion.
- Response:
Note
- Ensure that the API key for Wordnik is correctly set using the configuration command.
- The random word command has a delay of 3 seconds between subsequent calls to prevent abuse.
- Always refer to the specific module’s documentation or the bot’s source code for precise configuration options and values.