I'm new to mIRC, so I'm not entirely sure what to do with this script. If I paste it into scripts, right click on chat and press "Select bot for ___" it gives "L Unknown command". What am I supposed to be doing with this script?
bl4hcommented on mIRC Snippet: !spell
-
2 days ago
Hi guys. I made this many years ago and it still works. let me explain how to get it working, hawkee has changed since it was uploaded. My suggestion is to create a file called "spell.mrc", or name it whatever you want, and copy this code into that file. save it, and simply type:
/load -rs spell.mrc
and it should load the script. you can easily open your mirc dir by typing "/run ."
yes... slash run dot
hope it helps!
also please dont edit the parts where it talks to dict.org. like CLIENT and my email. because they have rules for using the server and it has to be done correctly
hi ty for this.
First , I have no clue in coding mIrc . lol So forgive me.
I am curious if it is possible to make this to where anyone in a certain channel can logon as a DJ just by (!onair $nick ) then have it state $nick has taken control of the DJ Booth. And if they type ( !offair ) it will log them off and state ( $nick has left the booth ) But also start a timer and end the timer at the same time. And have ( !dj show the dj $nick and amount of time onair )
Ok next lol I would like !request ( artist name - song name) open for everyone but sent to the same channel that the dj is in and a pm to that dj. to be available in other channels
And lol I know lot to ask. command !np for next song in quee to be available in other channels
Lastly :) !radio command that will display multiple links to players like : QuickTime ,Real Player, Windows Media Player , Winamp, iTunes and any others.
@Yawhatnever
yoyo. The script works: but i'm feeling it kinda useless.
Wouldn't it be better if you can set the script for a bot which sends the messages to a normal IRC network?
And that when someone type something in that chan, his message will be sent to the twitch tv with a [$nick] [msg] or something?
Cause know it kinda feels a little useless to me... :)
Tweeting from the bot?
I am having difficulty figuring out how to tweet directly from the bot, I was able to do it under the old version of the script using this
"alias quick_update twitter_statuses_update echo -a $consumer_key $consumer_secret $oauth_token $oauth_token_secret $1-"
That doesn't seem to work any more
DO NOT USE THIS SCRIPT. It contains a very easy-to-exploit SQL injection vulnerability: http://xkcd.com/327/
Author, please either fix this script or remove it, this page is showing up on search engines and giving people wanting to learn about PHP/SQL some very harmful examples.
I'll start by saying that it's probably not what you're looking for. However, you could re-use many of the aliases I've written for it to detect links in your twitch chat. I'd suggest opening it in another tab and then using ctrl+f to find the aliases I'm about to reference.
For example:
Code
This event would trigger when any URL was posted. However, it would also trigger for text like 'o.o'
To remove false matches, you would do the following:
Code
Inside $extractURL() I use an alias called $parseDomain(), which uses Mozilla's public suffix list to determine if the suffix used (such as .co.uk or .net) was valid or not. This means only valid domains are returned by $extractURL().
From there, you have the URLs posted inside %urls. You'd just need to loop through them and determine if the domain is whitelisted or not. For that, I have an alias called $trusted(). If $trusted(example.com) == $true, then the site is whitelisted.
It may be overkill for what you want, but if you're interested everything you'd need is in that script.
Using 'read' as an alias name is an ABSOLUTELY HORRIBLE IDEA because mIRC already has an identifier $read().
The same is true of /save. Just be glad you didn't call one of them /dec and then try to use it in another script inside a loop to decrease a variable (I've seen that before).
Checking if $1 is $null inside alias 'save' is redundant, because if $2 is not $null then $1 cannot be $null. Since the only valid format you have requires two parameters, you only need to check if $2 exists to know that they both exist.
Code
could be
Code
because 'save' and '.' are both literal text. There's no reason to $+() them together.
**Updated**
Updated to comply with the new Twitter api 1.1
I also found a bug that was causing 401 Unauthorized. I had no url encoding on passwords, so if they had special characters it generated a 401.
isn't giving scores anymore just returns same..
jethro? someone could fix would be awsome!
thanks
and is there anyway of adding checking a certian team's score to all of the checks?.. !mlb scores red sox
edit:
just thought of this...would be cool if you could check a teams schedule as well.. !mlb schedule red sox
Unique snippet. :) So, from the article you posted, this is a snippet that finds the number of single character transformations it would take to make one word into another?