The spelling bot
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!"
!!top<x>: Spell will list the topxnumber of words said. Only works for single digits (on purpose).
!!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.
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/bootstrapNext, 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/startAlso, if you'd like to play around with the underlying Spell class, I've added:
bin/consoleThen you can use the provided @spell instance
irb(main)> @spell.best_match('aligator')
=> "alligator"