The common method using [variable] similar to [global].... proc readit {} { ;# common method variable v putlog "v is now $v" } Another method I find handy.... proc readit {} { # another method putlog "v is now [set [namespace current]::v]" }
This should make the !mute and !unmute commands to function only in the radiodj "#yourchandj" channel. namespace eval radio { variable streamurl "https://zenoplay.zenomedia.com/api/zenofm/nowplaying/ffvwrxpufzzuv" variable radiochan "#yourchan" variable radiodj "#y...
Try this code, .restart the bot to clear global vars set bflood(maxlength) 200 set bflood(unsettime) 4 bind pubm - * pubm:byteflood proc pubm:byteflood {nick host hand chan text} { global bflood if {[string match -nocase #help $chan]} { return 0 } set chan [string tolower $chan] set text [string map...
Dictionary Lookup (jaxson) Version 1.4 (update by SpiKe^^) New Experimental Fix for tcl-tls version checking and related errors. New Code to follow redirect for "301 Moved Permanently" for things like "draws" and "Another". New Code tries to query defitions for common p...
Maybe this is the code it's bitching about: ?[http::formatQuery unitGroup metric key $::Visualcrossing::key] ...but to me that chunk seems ok, though I might call http::formatQuery more correctly ?[::http::formatQuery unitGroup metric key $::Visualcrossing::key] It does fit the syntax from the manua...
Sure would be easier to help with a script if you posted that entire script?! Guessing at context and variable names is challenging for others. Every API is different, you can't just copy and reuse that ?[::http::formatQuery string from your earlier api query and expect it to work with this new API....
You didn't bother to "Post the entire code you are currently running." But here is some basic if/elseif/else logic and layout again... if {$cloudcover < 10} { if {$currtime eq "Day"} { set sky "Sunny" } else { set sky "Clear" } } elseif {$cloudcover < 20} { if...