Mar 21, 2008
United States

Activity Stream

Tsuiseki commented on a Page, Configurable 8ball  -  Mar 23, 2008

Well, it is a step-up to those many repetitive 8ball scripts out there, so I credit you for the originality, just a few suggestions:

1) In you /state alias, you can easily shorten it using $iif and taking all of those numbers and putting them into one command. Here is an example of what I mean:

alias state did $iif($1 = 1,-e,-b) 8ball 2,3,4,6,8,10,12,14,16,18,23

2) Why not use a listbox and have a user add different answers? You could store all these answers in a text file and use $read.
3) Your script also requires the dialog to be open in the text event, what if a user doesn\'t keep it open? This could also be solved by using my second suggestion.

Good luck, just try finding a way to store answers and shorten your code.


Tsuiseki commented on a Page, Spellcheck socket  -  Mar 22, 2008

Thanks DarkNES!

I\'ve also added another update. The script now has a regex trigger to display the results two different ways. If you use the !spellcheck trigger it will notice the nick; if you use the @spellcheck trigger, it will message the channel. This is because some channels don\'t like public scripts.


Tsuiseki commented on a Page, Spellcheck socket  -  Mar 21, 2008

.. Update:

I just discovered a small error with that seemed to be occurring. What was happening was previous html from matching correctly spelled results seemed to be added with $addtok. I\'m not sure if others have been receiving this error, but I have been. So, I\'ve just added another if comparison just to make sure that it didn\'t happen. Sorry to all that have been receiving this error, if you have.


Tsuiseki commented on a Page, $spellcheck  -  Mar 21, 2008

Mountaindew, it doesn\'t look like that serves any purpose in this snippet, so I don\'t think is vital to the functionality. It wouldn\'t make sense to have it as %spelling.output because %spelling.output returns the results, and isn\'t an identifier. However, that line serves no purpose in the script so the author should remove it.

Rebellious, I\'ve noticed that your script doesn\'t return the results on cue. IE: if you used //echo -a $spellcheck(misspelled word) and then use //echo -a $spellcheck(correctly spelled word) again, they would return the same results. After much irritability and using the command multiple times with the same syntax, I\'ve also realized that the script will return the correct result if you were to use the second command again:

First round: //echo -a $spellcheck(assafaff) returns FALSE
Second round: //echo -a $spellcheck(hello) returns FALSE
Third round: //echo -a $spellcheck(hello) returns TRUE


Tsuiseki created a Page  -  Mar 21, 2008

~Spellcheck socket by Tsuiseki

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.