I've been using a slightly modified version of this script for years and it wasn't until maybe a few weeks ago that I noticed it will always reply with "Sorry - Cannot find movie name" and I have no idea where to look to try and fix it. Does anyone have a fix? This script gave the best output of text and my channel users and I really loved using it.
The !jokes part still works well. However, the !facts command will only return the first 27 characters of the random fact. Any idea on how to have it display the entire random fact? Thanks!
Example:
A giraffe has a 20-inch ton
The U.S. ranks 29th in over
"Tom Sawyer" was the first
The world's largest amphibi
UPDATE (Feb 18, 2017) ::: Just posting another update here to remind people that this script is OLD and outdated. I have created a MUCH better version of an AutoHost script that will continue to be updated at https://github.com/Blasman/mIRC-Twitch-Scripts/wiki/Script-Documentation#advanced-autohost-version-2 . PLEASE use that version instead!
I really like this script and it has been very useful for my bot that I use on Twitch. However, I seem to be having an issue. The problem is that about 1% of the time, the name returned will either be blank or it will be the name of someone who previously had their name retrieved from the JSON. I use this code for getting the proper display name from Twitch, as IRC has everybody's name in lower case and this script is the only way that I know of of how to get the proper case sensitive display name. Is there something that I could change to get it to work 100% of the time, or is this just a Twitch issue, or something else? I use $twitch_name(name_to_retrieve) to get the proper name. Thanks.
alias twitch_name {
JSONOpen -ud twitch_name https://api.twitch.tv/kraken/channels/ $+ $1
return $json(twitch_name, display_name)
}