mirror of
https://github.com/reality/dbot.git
synced 2024-11-30 16:09:27 +01:00
spelling docs
This commit is contained in:
parent
4067368fba
commit
c6d767ccdf
23
README.md
23
README.md
@ -60,7 +60,28 @@ their own listener, rather than being part of the command logic which is handled
|
|||||||
by the Command module. Functionality in this module can be slightly unsafe as
|
by the Command module. Functionality in this module can be slightly unsafe as
|
||||||
not much error checking on the input is performed.
|
not much error checking on the input is performed.
|
||||||
|
|
||||||
### JS - Run Javascript code
|
TODO: Add summaries for each command in this module.
|
||||||
|
|
||||||
|
### Spelling
|
||||||
|
|
||||||
|
Will attempt to correct a users' spelling by using the levenshtein distance
|
||||||
|
algorithm. One corrects the spelling of their previous message by simply posting
|
||||||
|
a message with their correction and an asterisk:
|
||||||
|
|
||||||
|
> user: I am a tutrle.
|
||||||
|
> user: *turtle
|
||||||
|
user meant: I am a turtle.
|
||||||
|
|
||||||
|
The regular expression for this module also accepts two asterisks at the
|
||||||
|
beginning of the correction, or at the end, and also accepts several words as
|
||||||
|
corrections, and deals with these fairly intelligently. Users may also attempt
|
||||||
|
to correct another users like so:
|
||||||
|
|
||||||
|
> userone: I am a tutrle.
|
||||||
|
> usertwo: userone: *turtle
|
||||||
|
> usertwo thinks userone meant: I am a turtle.
|
||||||
|
|
||||||
|
### JS
|
||||||
|
|
||||||
This module provides two commands which allow the execution of Javascript code.
|
This module provides two commands which allow the execution of Javascript code.
|
||||||
For regular users, there is the *~js* command, which is completely sandboxed,
|
For regular users, there is the *~js* command, which is completely sandboxed,
|
||||||
|
Loading…
Reference in New Issue
Block a user