A plugin to list close mathces to unfound commands
npm install @orbital-frame/plugin-did-you-meansh
npm install --save @orbital-frame/plugin-did-you-mean
`Usage
`js
import didYouMean from '@orbital-frame/plugin-did-you-mean'// add
didYouMean to your bot's plugins
`Configuring
This plugin exports both a configurable and preconfigured version. The default
export is preconfigured to use a sensitivity of 2 which is the upper bound for
the Damerau-Levenshtein distance. To configure your own value, use the named
export didYouMean.A higher value for the sensitivity will return
more results.$3
`js
import { didYouMean } from '@orbital-frame/plugin-did-you-mean'const configuredPlugin = didYouMean({ sensitivity: 5 })
// add
configuredPlugin to your bot's plugins
`In-Bot Example
`
> @jehuty hlep
Did you mean:
help
``