No description
  • Ruby 99%
  • Shell 1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2015-09-07 14:36:54 -04:00
bin Windows line endings fix 2015-08-28 01:44:33 -04:00
lib Annoyed list now a PersistentHash 2015-09-07 14:36:54 -04:00
.gitignore Moar profiling 2015-07-31 14:16:04 -04:00
Gemfile Latest Ruby 2015-08-25 17:53:23 -04:00
Gemfile.lock Moved to the new fancy 'spell' gem 2015-08-07 16:50:39 -04:00
README.md Multi-add 2015-07-31 16:03:09 -04:00
settings-example.json New masters format 2015-07-31 15:37:39 -04:00

spell

The spelling bot

What is spell?

Spell is a bot to correct spelling. When in a channel with spell, simply say:

spell: Spell this sentance!

And spell will obediently reply:

<your nick here> meant to say "spell this sentence!"

Commands

All user commands

  • !!top<x>: Spell will list the top x number of words said. Only works for single digits (on purpose).

Master commands

  • !!annoying: Enable annoying mode. Spell will correct everything said in all channels. Everything.
  • !!stop: Disable annoying mode. Spell will stop correcting everything said everywhere.
  • !!join <channel>: Spell will join that channel.
  • !!part: Spell will leave the current channel.
  • !!add <word1 word2 ...>: Adds the given words to the dictionary.

I am not responsible for anything Spell says to a normal user trying to use a master command.

Setup

First, you'll need to have a Redis server running.

After downloading a dictionary file (try ENABLE), and saving it in the directory as words.txt, run:

./bin/bootstrap

Next, you'll need specify some configuration. Look at settings-example.json for an example. You may simply copy settings-example.json to settings.json, and change the fields appropriately.

Then, to start the bot, simply run:

./bin/start

Also, if you'd like to play around with the underlying Spell class, I've added:

bin/console

Then you can use the provided @spell instance

irb(main)> @spell.best_match('aligator')
=> "alligator"