This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Search found 826 matches

by SpiKe^^
Wed Mar 23, 2022 12:38 pm
Forum: Scripting Help
Topic: Accessing a [namespace current] variable
Replies: 3
Views: 2042

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]" }
by SpiKe^^
Wed Mar 16, 2022 12:15 pm
Forum: Scripting Help
Topic: how to centralize the commands only in a room
Replies: 18
Views: 6939

lol, that's simply not true:)

Code: Select all

Must be: 

 Code: 
::radio::getstream 0 0 0 0 0

The called process doesn't care what the arguments contain!

I edited my earlier post to hopefully fix that "wrong number of args" error...
by SpiKe^^
Tue Mar 15, 2022 8:15 pm
Forum: Scripting Help
Topic: how to centralize the commands only in a room
Replies: 18
Views: 6939

Try this... namespace eval radio { variable streamurl "https://zenoplay.zenomedia.com/api/zenofm/nowplaying/ffvwrxpufzzuv" variable radiochan "#yourchan" variable radiodj "#yourchandj" package require http package require tls variable cursong "" bind pub - !di...
by SpiKe^^
Tue Mar 15, 2022 1:47 pm
Forum: Scripting Help
Topic: how to centralize the commands only in a room
Replies: 18
Views: 6939

I was just fixing the room specific public !unmute & !mute command deal.
(Post subject: how to centralize the commands only in a room)

If the script is unable to get data from the webpage that's a whole different deal.
Maybe CrazyCat can figure out why the script no longer works?
by SpiKe^^
Tue Mar 15, 2022 1:06 pm
Forum: Scripting Help
Topic: how to centralize the commands only in a room
Replies: 18
Views: 6939

Slightly changed the above fix I posted.

You need to .restart the bot to remove all earlier binds!
by SpiKe^^
Tue Mar 15, 2022 10:51 am
Forum: Scripting Help
Topic: how to centralize the commands only in a room
Replies: 18
Views: 6939

Now you have both of us very confused.

Please try to explain what you are after here...
by SpiKe^^
Tue Mar 15, 2022 10:21 am
Forum: Scripting Help
Topic: how to centralize the commands only in a room
Replies: 18
Views: 6939

Make !mute and !unmute commands channel specific.

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...
by SpiKe^^
Sat Mar 05, 2022 6:25 pm
Forum: Scripting Help
Topic: text character counter issue with nick like [somenick]
Replies: 2
Views: 1481

Try this.

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...
by SpiKe^^
Sun Feb 27, 2022 2:30 pm
Forum: Script Requests
Topic: Reop-Mode
Replies: 11
Views: 3297

k.
by SpiKe^^
Sun Feb 27, 2022 12:52 pm
Forum: Script Requests
Topic: Reop-Mode
Replies: 11
Views: 3297

Not sure I get the reasoning.

Why would you not just use the IRCnet MODE commands directly??
by SpiKe^^
Thu Feb 24, 2022 2:24 pm
Forum: Script Requests
Topic: Dictionary
Replies: 11
Views: 4434

Dictionary Lookup v1.4 update...

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...
by SpiKe^^
Mon Feb 21, 2022 6:55 pm
Forum: Scripting Help
Topic: Sun and Moon script
Replies: 18
Views: 6268

Pasted code looks fine.

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...
by SpiKe^^
Sun Feb 20, 2022 2:51 pm
Forum: Scripting Help
Topic: Sun and Moon script
Replies: 18
Views: 6268

Code: Select all

https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/${arg}/next5days?key=YOUR_API_KEY
by SpiKe^^
Sun Feb 20, 2022 12:42 pm
Forum: Scripting Help
Topic: Sun and Moon script
Replies: 18
Views: 6268

Try to be more helpful to the helpers

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....
by SpiKe^^
Mon Feb 14, 2022 5:17 pm
Forum: Scripting Help
Topic: Sun and Moon script
Replies: 18
Views: 6268

Basic if/elseif/else logic...

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...