2012-03-10 20:40:02 +01:00
|
|
|
# Depressionbot IRC Bot
|
|
|
|
|
|
|
|
## Introduction
|
|
|
|
|
|
|
|
Depressionbot is an IRC bot which aims to be the fanciest IRC bot around - On
|
2012-12-18 10:41:05 +01:00
|
|
|
the general standard of software fanciness, dbot is rated as being '81% the same
|
2012-03-10 20:40:02 +01:00
|
|
|
as bathing in fine, fine grape juice.'
|
|
|
|
|
2012-03-10 21:15:13 +01:00
|
|
|
Please note that this documentation is not complete and is a work in progress,
|
|
|
|
given I started it rather a long time after I began development of the project.
|
|
|
|
Please don't judge me too harshly for this as I am, in fact, mildly allergic to
|
|
|
|
writing documentation.
|
2012-03-10 21:14:47 +01:00
|
|
|
|
2012-03-10 20:40:02 +01:00
|
|
|
Requirements:
|
2012-03-10 21:10:49 +01:00
|
|
|
|
2012-03-10 21:04:03 +01:00
|
|
|
- Node JS
|
2012-07-17 15:13:30 +02:00
|
|
|
- [JSBot](http://github.com/reality/JSBot "JSBot"), a Javascript library which
|
|
|
|
handles the IRC protocol.
|
2012-03-10 21:04:03 +01:00
|
|
|
- Various modules have their own requirements also.
|
2012-03-10 20:40:02 +01:00
|
|
|
|
2012-12-30 00:05:16 +01:00
|
|
|
### External Modules
|
2012-07-17 15:13:30 +02:00
|
|
|
|
2012-12-30 00:05:16 +01:00
|
|
|
JSBot and externally developed modules can be imported by running the following
|
|
|
|
commands in the cloned repository:
|
2012-07-17 15:13:30 +02:00
|
|
|
|
|
|
|
git submodule init
|
|
|
|
git submodule update
|
|
|
|
|
2012-03-10 20:40:02 +01:00
|
|
|
## Modules:
|
|
|
|
|
2012-03-10 21:04:03 +01:00
|
|
|
### 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
|
2012-03-10 21:10:49 +01:00
|
|
|
beginning of the correction, or at the end; it also accepts several words as the
|
|
|
|
correction and deals with these fairly intelligently. Users may also attempt
|
2012-03-10 21:04:03 +01:00
|
|
|
to correct another users like so:
|
|
|
|
|
|
|
|
> userone: I am a tutrle.
|
|
|
|
> usertwo: userone: *turtle
|
|
|
|
> usertwo thinks userone meant: I am a turtle.
|