<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/21256" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2023-12-13T09:12:54-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/21256</id>

		<entry>
		<author><name><![CDATA[Henkie2]]></name></author>
		<updated>2023-12-13T09:12:54-04:00</updated>

		<published>2023-12-13T09:12:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112311#p112311</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112311#p112311"/>
		<title type="html"><![CDATA[Re: TVMaze Script That lists tonights shows]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112311#p112311"><![CDATA[
<blockquote class="uncited"><div>With my tests, it works with https, peharps your tls package version is too old.<br><br>And I'm sorry but I haven't enough time to help you more with other parts, but I think you have all elements to improve the script.<br><br>Good luck !</div></blockquote>Maybe it's outdated, will have a check on that. Thanks once again and i'm going to try to get that stream as extra and will share my results <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>Edit: got 1.67 package (on windrop) anyone has the 1.7 compiled?<br>Also added !yesterday trigger as well, thx that was easy hahaha<br>Only that stream page, for some reason no results<br><br>changed to webchannel and airdate<br><a href="https://api.tvmaze.com/schedule/web?date=2023-12-12&amp;country=US" class="postlink">https://api.tvmaze.com/schedule/web?dat ... country=US</a><br><div class="codebox"><p>Code: </p><pre><code> # Filter the TV shows by time and network   set shows {}   foreach item $json_data {      set airdate [dict get $item airdate]      set season [dict get $item season]      set number [dict get $item number]      set webChannel [dict get [dict get $item show] webChannel name]      set name [dict get [dict get $item show] name]      if {[lsearch -exact $::tvmaze_streamnetworks $network] != -1} {         lappend shows [format "%s %s (S%sE%s) - %s" $airdate $name $season $number $webChannel]      }   }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12567">Henkie2</a> — Wed Dec 13, 2023 9:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2023-12-13T09:05:03-04:00</updated>

		<published>2023-12-13T09:05:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112310#p112310</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112310#p112310"/>
		<title type="html"><![CDATA[Re: TVMaze Script That lists tonights shows]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112310#p112310"><![CDATA[
With my tests, it works with https, peharps your tls package version is too old.<br><br>And I'm sorry but I haven't enough time to help you more with other parts, but I think you have all elements to improve the script.<br><br>Good luck !<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Wed Dec 13, 2023 9:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Henkie2]]></name></author>
		<updated>2023-12-13T08:48:53-04:00</updated>

		<published>2023-12-13T08:48:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112309#p112309</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112309#p112309"/>
		<title type="html"><![CDATA[Re: TVMaze Script That lists tonights shows]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112309#p112309"><![CDATA[
<blockquote class="uncited"><div>I made some corrections to your code:<br>Now, you have 3 procedures, tvmazetoday and tvmazetomorrow just format the good date and send it to tvmazeget which is the main proc.<br><br>All variables are out of the proc, it's simplest to change the configuration.<br><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark-reasonable.min.css"> <strong>script</strong>  <strong>script</strong> <div class="codebox"><pre><code class="language-tcl"># -----------------------------------# TVMaze TV !today API Announce# -----------------------------------set tvmaze_chan "#test"set tvmaze_api_key "YOUR_KEY_HERE"# Define the networks we're interested inset tvmaze_networks {"AMC" "FOX" "FX" "SyFy" "Travel" "HBOMAX" "CW" "Starz" "TLC" "Showtime" "KTLA" "NBC" "CBS" "ABC"}set tvmaze_tz +2# Define the !today/!tonight commandbind pub - "!today" tvmazetodaybind pub - "!tonight" tvmazetodaybind time - "* 00 * * *" tvmazetodaybind pub - "!tomorrow" tvmazetomorrowpackage require httppackage require tlspackage require json# Today procproc tvmazetoday {nick uhost hand chan text} {   if {$chan ne $::tvmaze_chan} { return }   tvmazeget "Today" [clock format [clock add [clock seconds] $::tvmaze_tz hours] -format "%Y-%m-%d"]}# Tomorrow proc: add 1 dayproc tvmazetomorrow {nick uhost hand chan text} {   if {$chan ne $::tvmaze_chan} { return }   tvmazeget "Tomorrow" [clock format [clock add [clock seconds] +1 day $::tvmaze_tz hours] -format "%Y-%m-%d"]}# Global procproc tvmazeget {fday day} {   http::register https 443 [list ::tls::socket -autoservername true]   set url "https://api.tvmaze.com/schedule"   set response [http::geturl $url?date=${day}&amp;country=US -headers [list "X-TVMaze-API-Key" $::tvmaze_api_key] -timeout 10000]   putserv "PRIVMSG $::tvmaze_chan :$url?date=${day}&amp;country=US"   upvar 0 $response state   if {$state(status) ne "ok"} {      putlog "HTTP Error : $state(url) made $state(status) error"      return   }   set json_data [::json::json2dict [http::data $response]]   ::http::cleanup $response   ::http::unregister https   # Filter the TV shows by time and network   set shows {}   foreach item $json_data {      set airtime [dict get $item airtime]      set season [dict get $item season]      set number [dict get $item number]      set network [dict get [dict get $item show] network name]      set name [dict get [dict get $item show] name]      if {[lsearch -exact $::tvmaze_networks $network] != -1} {         lappend shows [format "%s %s (S%sE%s) - %s" $airtime $name $season $number $network]      }   }   # If no shows were found, display a message   if {[llength $shows] == 0} {      putquick "PRIVMSG $::tvmaze_chan :TVMAZE: ${fday}'s TV Shows:"      putquick "PRIVMSG $::tvmaze_chan :00:00 No TV shows found for tonight"      return   }   # List the TV shows in the channel   putquick "PRIVMSG $::tvmaze_chan :TVMAZE: ${fday}'s TV Shows:"   foreach show $shows {      putquick "PRIVMSG $::tvmaze_chan :$show"   }}</code></pre></div> <strong>script</strong> </div></blockquote>Ohw wow that's awesome <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> going to test now. (edit: tested only still no luck on https on http url it works) Thx for this much appreciated also comparing about https thx going to use it for getting experienced with it.<br><br>Also can you help on getting extra proc to collect data of that web/stream page so we can show that streams to<br>Like: Hulu/netflix etc. It's needs to be a new proc because of json regex is diff on this page.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12567">Henkie2</a> — Wed Dec 13, 2023 8:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2023-12-13T05:24:20-04:00</updated>

		<published>2023-12-13T05:24:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112308#p112308</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112308#p112308"/>
		<title type="html"><![CDATA[Re: TVMaze Script That lists tonights shows]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112308#p112308"><![CDATA[
I made some corrections to your code:<br>Now, you have 3 procedures, tvmazetoday and tvmazetomorrow just format the good date and send it to tvmazeget which is the main proc.<br><br>All variables are out of the proc, it's simplest to change the configuration.<br><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark-reasonable.min.css"> <strong>script</strong>  <strong>script</strong> <div class="codebox"><pre><code class="language-tcl"># -----------------------------------# TVMaze TV !today API Announce# -----------------------------------set tvmaze_chan "#test"set tvmaze_api_key "YOUR_KEY_HERE"# Define the networks we're interested inset tvmaze_networks {"AMC" "FOX" "FX" "SyFy" "Travel" "HBOMAX" "CW" "Starz" "TLC" "Showtime" "KTLA" "NBC" "CBS" "ABC"}set tvmaze_tz +2# Define the !today/!tonight commandbind pub - "!today" tvmazetodaybind pub - "!tonight" tvmazetodaybind time - "* 00 * * *" tvmazetodaybind pub - "!tomorrow" tvmazetomorrowpackage require httppackage require tlspackage require json# Today procproc tvmazetoday {nick uhost hand chan text} {   if {$chan ne $::tvmaze_chan} { return }   tvmazeget "Today" [clock format [clock add [clock seconds] $::tvmaze_tz hours] -format "%Y-%m-%d"]}# Tomorrow proc: add 1 dayproc tvmazetomorrow {nick uhost hand chan text} {   if {$chan ne $::tvmaze_chan} { return }   tvmazeget "Tomorrow" [clock format [clock add [clock seconds] +1 day $::tvmaze_tz hours] -format "%Y-%m-%d"]}# Global procproc tvmazeget {fday day} {   http::register https 443 [list ::tls::socket -autoservername true]   set url "https://api.tvmaze.com/schedule"   set response [http::geturl $url?date=${day}&amp;country=US -headers [list "X-TVMaze-API-Key" $::tvmaze_api_key] -timeout 10000]   putserv "PRIVMSG $::tvmaze_chan :$url?date=${day}&amp;country=US"   upvar 0 $response state   if {$state(status) ne "ok"} {      putlog "HTTP Error : $state(url) made $state(status) error"      return   }   set json_data [::json::json2dict [http::data $response]]   ::http::cleanup $response   ::http::unregister https   # Filter the TV shows by time and network   set shows {}   foreach item $json_data {      set airtime [dict get $item airtime]      set season [dict get $item season]      set number [dict get $item number]      set network [dict get [dict get $item show] network name]      set name [dict get [dict get $item show] name]      if {[lsearch -exact $::tvmaze_networks $network] != -1} {         lappend shows [format "%s %s (S%sE%s) - %s" $airtime $name $season $number $network]      }   }   # If no shows were found, display a message   if {[llength $shows] == 0} {      putquick "PRIVMSG $::tvmaze_chan :TVMAZE: ${fday}'s TV Shows:"      putquick "PRIVMSG $::tvmaze_chan :00:00 No TV shows found for tonight"      return   }   # List the TV shows in the channel   putquick "PRIVMSG $::tvmaze_chan :TVMAZE: ${fday}'s TV Shows:"   foreach show $shows {      putquick "PRIVMSG $::tvmaze_chan :$show"   }}</code></pre></div> <strong>script</strong> <p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Wed Dec 13, 2023 5:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Henkie2]]></name></author>
		<updated>2023-12-13T00:04:18-04:00</updated>

		<published>2023-12-13T00:04:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112307#p112307</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112307#p112307"/>
		<title type="html"><![CDATA[Re: TVMaze Script That lists tonights shows]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112307#p112307"><![CDATA[
<blockquote class="uncited"><div>Quick solution for https: use this kind of register:<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark-reasonable.min.css"> <strong>script</strong>  <strong>script</strong> <div class="codebox"><pre><code class="language-tcl">http::register https 443 [list ::tls::socket -autoservername true]</code></pre></div> <strong>script</strong> Paste your script and I'll have a try soon</div></blockquote>He thx, will have a look. This is wat i did and for sure code can be better. <br>(need to define the sets outside the proc etc, only i'm not a coder as well)<br>Right now it's not working if i use the https like this. (set url to http and it works)<br><br>Todo: (Someone can help on this? thx)<br>- from http to https API call<br>- set defines outside proc tvmazetoday (for use on new triggers: !tomorrow, !todaystream etc)<br>- timezone not really working + or- not really give diff in results<br>- trigger: !tomorrow trigger add extra day to $currdate (How todo?)<br>- trigger: !todaystreams get webstreams page data (date from hulu,disney+, netflix etc)<br>url = <a href="http://api.tvmaze.com/schedule/web?date=$currdate&amp;country=US" class="postlink">http://api.tvmaze.com/schedule/web?date ... country=US</a><br>regex/json needs to be checked on this to get correct network etc (can anyone help me?)<br><div class="codebox"><p>Code: </p><pre><code># -----------------------------------# TVMaze TV !today API Announce# -----------------------------------   # Define the !today/!tonight command   bind pub - "!today" tvmazetoday   bind pub - "!tonight" tvmazetoday   bind time - "* 00 * * *" tvmazetoday   #bind pub - "!tomorrow" tvmazetomorrow (need to add extra day firts from $currdate)proc tvmazetoday {nick uhost hand chan text} {package require httppackage require tlshttp::register https 443 [list ::tls::socket -autoservername true]      # Channel to show upcoming tv shows   set chan "#channelhere"   # Get your tvmaze api key:    set tvmaze_api_key "YOUR_KEY_HERE"   # Define the networks we're interested in   set networks [list "AMC" "FOX" "FX" "SyFy" "Travel" "HBOMAX" "CW" "Starz" "TLC" "Showtime" "KTLA" "NBC" "CBS" "ABC"]       # Get the current date and time in Eastern time zone    set timezone +6    set currtime [clock add [clock seconds] $timezone minutes]    set currdate [clock format $currtime -format %Y-%m-%d]    set currtime [clock format $currtime -format %H:%M:%S]    # Fetch the TV shows for the current date    set url "https://api.tvmaze.com/schedule?$currdate&amp;country=US"    set response [http::geturl $url -headers [list "X-TVMaze-API-Key" $tvmaze_api_key] -timeout 10000]    set json_data [json::json2dict [http::data $response]]    http::unregister https    http::cleanup $response    # Filter the TV shows by time and network    set shows {}    foreach item $json_data {        set airtime [dict get $item "airtime"]        set season [dict get $item "season"]        set number [dict get $item "number"]        set network [dict get [dict get $item "show"] "network" "name"]        set name [dict get [dict get $item "show"] "name"]        if {[lsearch -exact $networks $network] != -1} {            lappend shows [format "%s %s (S%sE%s) - %s" $airtime $name $season $number $network]        }    }    # If no shows were found, display a message    if {[llength $shows] == 0} {        putquick "PRIVMSG $chan :TVMAZE: Today's TV Shows:"        putquick "PRIVMSG $chan :00:00 No TV shows found for tonight"        return    }    # List the TV shows in the channel    putquick "PRIVMSG $chan :TVMAZE: Today's TV Shows:"    foreach show $shows {        putquick "PRIVMSG $chan :$show"    }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12567">Henkie2</a> — Wed Dec 13, 2023 12:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2023-12-12T18:51:00-04:00</updated>

		<published>2023-12-12T18:51:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112306#p112306</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112306#p112306"/>
		<title type="html"><![CDATA[Re: TVMaze Script That lists tonights shows]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112306#p112306"><![CDATA[
Quick solution for https: use this kind of register:<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark-reasonable.min.css"> <strong>script</strong>  <strong>script</strong> <div class="codebox"><pre><code class="language-tcl">http::register https 443 [list ::tls::socket -autoservername true]</code></pre></div> <strong>script</strong> Paste your script and I'll have a try soon<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Tue Dec 12, 2023 6:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Henkie2]]></name></author>
		<updated>2023-12-12T13:41:28-04:00</updated>

		<published>2023-12-12T13:41:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112305#p112305</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112305#p112305"/>
		<title type="html"><![CDATA[Re: TVMaze Script That lists tonights shows]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112305#p112305"><![CDATA[
He nice one, was looking for this.<br>Got it working only i'm a retard how can i make it to call it as https?<br><br>I added this:<br><br> package require http<br> package require tls<br><br>proc tvmazetoday {nick uhost hand chan text} {<br>http::register https 443 [list ::tls::socket]<br><br>url as https://<br>http::unregister https<br><br>Only than it's not parsing the data <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br>Any one can give me a advice? Thx<br><br>Edit: And how to add a extra day? To get trigger !tomorrow available?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12567">Henkie2</a> — Tue Dec 12, 2023 1:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2023-03-16T07:28:18-04:00</updated>

		<published>2023-03-16T07:28:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111769#p111769</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111769#p111769"/>
		<title type="html"><![CDATA[TVMaze Script That lists tonights shows]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111769#p111769"><![CDATA[
<blockquote class="uncited"><div>The 'window' in the above example is the 'global' thing that CrazyCat hinted about. Basically before the: "# Get the current date and time in Eastern time zone " line add:<div class="codebox"><p>Code: </p><pre><code>global tvmaze_api_key</code></pre></div>and rehash the bot.</div></blockquote>My preference goes to not use global (too easy to forget a variable) and name the variable with its namespace:<div class="codebox"><p>Code: </p><pre><code>set response [http::geturl $url -headers [list "X-TVMaze-API-Key" $::tvmaze_api_key]]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Thu Mar 16, 2023 7:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2023-03-15T22:30:54-04:00</updated>

		<published>2023-03-15T22:30:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111768#p111768</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111768#p111768"/>
		<title type="html"><![CDATA[Re: TVMaze Script That lists tonights shows]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111768#p111768"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>...  We can give you links to bookmark for quick reference.  </div></blockquote>That would be greatly appreciated Thx</div></blockquote>TCL is a stand alone scripting language.   Eggdrop just uses it.  And, the Eggdrop people have thus created some Eggdrop specific stuff.<br><br>This the Eggdrop specific TCL page:<br><a href="https://docs.eggheads.org/using/tcl-commands.html" class="postlink">https://docs.eggheads.org/using/tcl-commands.html</a><br><br>This is the rest of TCL:<br><a href="https://www.tcl.tk/man/tcl8.6/TclCmd/contents.html" class="postlink">https://www.tcl.tk/man/tcl8.6/TclCmd/contents.html</a><br><br>For example, the thing that you have been discussing - the global command - can be found there.<br><a href="https://www.tcl.tk/man/tcl8.6/TclCmd/global.html" class="postlink">https://www.tcl.tk/man/tcl8.6/TclCmd/global.html</a><br>I hope that your eyes don't glaze over, when you look at that page.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">    Things can go way in depth on that site.  But at times, that's necessary.   Other times, you can get the info explained to you, right here - in simpler and shorter terms.<br><br>This is a course in TCL for Eggdrop.  It is designed to help the beginner that knows nothing about it,  to get started.<br><a href="http://suninet.the-demon.de/" class="postlink">http://suninet.the-demon.de/</a><br>It is a very old page.    So what?... the info is still good.    <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>Start at the beginning, and go through it,  section by section.   It takes you by the hand, and guides you.<br>I suggest that at any time as you are going through it, that when you hit something that is not fully clear,  or just looks to be fun,    to stop and go write some code and load it in your bot, and play with it !    <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>  I suggest that if at all possible, you have a spare bot up and running, that is not performing any functions that you care about,   such that you can use it to test code on.   This way, when you crash it,  it's no big deal.     And you WILL crash it.   Don't ask me how I know ...     <br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>With those three links, you can not only get started, but you can do a <strong class="text-strong">LOT</strong> !  <br><br>Start with something so simple that it is almost silly.      Like having the bot respond with something when you do:<br>!hello<br>Then perhaps move on to having the bot greet you when you join a channel with it.<br>These sort of things will get you used to the most very basic things.    Then... you build your skill from there.  <br><br>Write code ...   and when you get stumped,   you can post it on this forum under Scripting Help.    Somebody will come along and point out the goof, and tell you what to read up on, so you can fix it.<br><br>Annnnnnd ...   away you go !<br><br>Have fun!<br>I hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Wed Mar 15, 2023 10:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2023-03-15T21:56:43-04:00</updated>

		<published>2023-03-15T21:56:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111767#p111767</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111767#p111767"/>
		<title type="html"><![CDATA[TVMaze Script That lists tonights shows]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111767#p111767"><![CDATA[
Well then Caesar's "global tvmaze_api_key" line will clear that error...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Wed Mar 15, 2023 9:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BarGuy]]></name></author>
		<updated>2023-03-15T21:54:09-04:00</updated>

		<published>2023-03-15T21:54:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111766#p111766</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111766#p111766"/>
		<title type="html"><![CDATA[Re: AI bots are far from smart]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111766#p111766"><![CDATA[
<blockquote class="uncited"><div>You have all the same code repeated twice in your script!<br></div></blockquote>I looked at my actual eggdrop script file and its not duped, must have just be a double paste on my part here<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12815">BarGuy</a> — Wed Mar 15, 2023 9:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2023-03-15T21:50:30-04:00</updated>

		<published>2023-03-15T21:50:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111765#p111765</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111765#p111765"/>
		<title type="html"><![CDATA[AI bots are far from smart]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111765#p111765"><![CDATA[
You have all the same code repeated twice in your script!<br><br>Remove all of the duplicate code, then apply the global fix as posted by CrazyCat &amp; caesar to the remaining code.<br><br>That will clear the first error you posted above.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Wed Mar 15, 2023 9:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BarGuy]]></name></author>
		<updated>2023-03-15T21:12:19-04:00</updated>

		<published>2023-03-15T21:12:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111764#p111764</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111764#p111764"/>
		<title type="html"><![CDATA[TVMaze Script That lists tonights shows]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111764#p111764"><![CDATA[
<blockquote class="uncited"><div>. Basically before the: "# Get the current date and time in Eastern time zone " line add:<div class="codebox"><p>Code: </p><pre><code>global tvmaze_api_key</code></pre></div>and rehash the bot.</div></blockquote>Tried.. got the same error. Thanks for taking a look<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12815">BarGuy</a> — Wed Mar 15, 2023 9:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BarGuy]]></name></author>
		<updated>2023-03-15T21:11:18-04:00</updated>

		<published>2023-03-15T21:11:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111763#p111763</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111763#p111763"/>
		<title type="html"><![CDATA[Re: TVMaze Script That lists tonights shows]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111763#p111763"><![CDATA[
<blockquote class="uncited"><div>...  We can give you links to bookmark for quick reference.  </div></blockquote>That would be greatly appreciated Thx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12815">BarGuy</a> — Wed Mar 15, 2023 9:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2023-03-15T12:21:10-04:00</updated>

		<published>2023-03-15T12:21:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111762#p111762</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111762#p111762"/>
		<title type="html"><![CDATA[TVMaze Script That lists tonights shows]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111762#p111762"><![CDATA[
In layman terms, the error states that the 'tvmaze_api_key' variable isn't 'available' for the 'tonight' function (meaning 'proc tonight').<br><br>To extrapolate and give a real life example is like you are in a room without any door or windows towards outside and you can't tell if it's day or night outside. Now, if you would have access to a window you could tell it's day, night or whatever.<br><br>The 'window' in the above example is the 'global' thing that CrazyCat hinted about. Basically before the: "# Get the current date and time in Eastern time zone " line add:<div class="codebox"><p>Code: </p><pre><code>global tvmaze_api_key</code></pre></div>and rehash the bot.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Mar 15, 2023 12:21 pm</p><hr />
]]></content>
	</entry>
	</feed>
