Try it out HERE and let me know what you think. There are bound to be bugs, but for the most part I tried to make it robust as possible. There are settings within the config to control a few things. Enjoy and have a fun...<speechles> !dict --adj3 red
<sp33chy> Adjective (1) S: (adj) red, reddish, ruddy, blood-red, carmine, cerise, cherry, cherry-red, crimson, ruby, ruby-red, scarlet (of a color at the end of the color spectrum (next to orange); resembling the color of blood or cherries or tomatoes or rubies)
<sp33chy> Adjective (2) S: (adj) crimson, red, violent (characterized by violence or bloodshed) "writes of crimson deeds and barbaric days"- Andrea Parke; "fann'd by Conquest's crimson wing"- Thomas Gray; "convulsed with red rage"- Hudson Strode
<sp33chy> Adjective (3) S: (adj) crimson, red, reddened, red-faced, flushed ((especially of the face) reddened or suffused with or as if with blood from emotion or exertion) "crimson with fury"; "turned red from exertion"; "with puffy reddened eyes"; "red-faced and violent"; "flushed (or crimson) with embarrassment"
<sp33chy> red: Noun 4; Adjective 3 @ http://wordnetweb.princeton.edu/perl/webwn?s=red
<speechles> !dict
<sp33chy> !dict [--<noun/verb/adjective/adverb/all>][<number of results start-end>] <word>
<speechles> !dict --v3-5 red
<sp33chy> red: No results found for verb 3 -> 5.
<sp33chy> red: Noun 4; Adjective 3 @ http://wordnetweb.princeton.edu/perl/webwn?s=red
<speechles> !dict asd^#$^$%&
<sp33chy> asd^#$^$%&: Sorry(?) your search can only contain letters(?) numbers(?) spaces(?) hyphens(?) periods(?) slashes(?) and(?)or apostrophes.
<speechles> !dict --v1-1 egg
<sp33chy> Verb (1) S: (v) egg (throw eggs at)
<sp33chy> egg: Noun 3; Verb 2 @ http://wordnetweb.princeton.edu/perl/webwn?s=egg
<speechles> !dict tree
<sp33chy> Noun (1) S: (n) tree (a tall perennial woody plant having a main trunk and branches forming a distinct elevated crown; includes both gymnosperms and angiosperms)
<sp33chy> Noun (2) S: (n) tree, tree diagram (a figure that branches from a single root) "genealogical tree"
<sp33chy> Noun (3) S: (n) Tree, Sir Herbert Beerbohm Tree (English actor and theatrical producer noted for his lavish productions of Shakespeare (1853-1917))
<sp33chy> Verb (1) S: (v) corner, tree (force a person or an animal into a position from which he cannot escape)
<sp33chy> Verb (2) S: (v) tree (plant with trees) "this lot should be treed so that the house will be shaded in summer"
<sp33chy> Maximum limit of 5 reached..refine search to see more.
<sp33chy> tree: Noun 3; Verb 4 @ http://wordnetweb.princeton.edu/perl/webwn?s=tree
<speechles> !dict --all1 egg
<sp33chy> Noun (1) S: (n) egg (animal reproductive body consisting of an ovum or embryo together with nutritive and protective envelopes; especially the thin-shelled reproductive body laid by e.g. female birds)
<sp33chy> Verb (1) S: (v) egg (throw eggs at)
<sp33chy> egg: Noun 3; Verb 2 @ http://wordnetweb.princeton.edu/perl/webwn?s=egg
#1. Weird, none of the puthelp's are done incorrectly... I've tripled checked them all.holycrap wrote:You guys are just the greatest! Thanks much for your time!
I would like to report some bugs and requests.
1. I keep getting this:
"Tcl error [incith::dictionary::public_message]: wrong # args: should be "puthelp text ?options?""
2. Can you remove the "S:" before every result?
3. Anything besides the definition, "notice" the user instead of messaging the channel. For example: no results found, null input, or anything else that's not the definition.
Thanks!
Yep.. I neglected to script any kind of socket/timeout detection for some reason . The real problem is the website isn't connecting which creates a situation where the http package cannot retrieve the body of the html. The error you are seeing happens the instant the script attempts to do anything with the unretrieved body. I'll script up some kind of error detection for these later on tonight.sk-4 wrote:im getting error in script
<+sk4> !dict love
Tcl error [incith::dictionary::public_message]: can't read "state(body)": no such variable
Correct you are. It's working properly once again. But for those times when this does happen again. The script will now detect both socket and timeout errors and new config displays are added for these allowing you to customize those messages as well.holycrap wrote:Please don't change to a different site. I think it's cause the holiday and they shut down their server or something.
I learned to stop saying that ages ago my friend. It will never be perfect. It will always break. Someone will want something, so on and so forth.speechles wrote:Incith:Dictionary v1.3
This one should be perfect