3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-25 04:02:39 +01:00
Go to file
2012-12-30 18:00:50 +00:00
jsbot@f050c93f22 trigger updateNickLists to update knownUsers on module load 2012-12-23 16:46:33 +00:00
modules Documentation for the JS module [#75] 2012-12-30 18:00:50 +00:00
public Index page 2012-06-15 18:57:47 +01:00
views Removed sass compiler usage from web.js, updated jade templates to use blocks 2012-12-24 04:06:04 +00:00
.gitignore Module specific config. Allows specify dbKeys to ensure default objects there for use. 2012-12-12 18:07:08 +00:00
.gitmodules Added Sams stats module 2012-12-23 14:25:34 +00:00
config.json.sample Add a debug mode that shows the error and the top of the stack trace in the case of an error if activated. 2012-12-23 02:25:58 +00:00
README.md Documentation for the JS module [#75] 2012-12-30 18:00:50 +00:00
run.js ignorableModules now built with filter, module.toString returns name 2012-12-30 17:52:42 +00:00
snippets.js dbot.modules is now an object 2012-12-30 00:45:25 +00:00
strings.json added try/catch for no usage/string info, moved module load error back to default stringspace 2012-12-11 20:23:31 +00:00
timer.js Changed quote spam protection model [#72] 2012-12-19 21:03:03 +00:00

Depressionbot IRC Bot

Introduction

Depressionbot is an IRC bot which aims to be the fanciest IRC bot around - On the general standard of software fanciness, dbot is rated as being 81% the same as bathing in fine, fine grape juice.

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 dont judge me too harshly for this as I am, in fact, mildly allergic to writing documentation.

Requirements:

  • Node JS
  • JSBot, a Javascript library which handles the IRC protocol.
  • Various modules have their own requirements also.

External Modules

JSBot and externally developed modules can be imported by running the following commands in the cloned repository:

git submodule init
git submodule update

Modules:

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; it also accepts several words as the correction 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.