Well, it says it can't read the variable cause it's an array: (cumulan = substitute) [16:26] Tcl error [spidey:cumulan]: can't read "::cumulan": variable is array This is after I used global to make it accessible. Without using global, it says it doesn't exist, and without referring to it ...
Woo, that was great help. I didn't know you could use string map with a list like that. Anyways, I tried it, and it works fine, until it stops replacing characters after the fifth time. I mean, +cumulan abcde works, but beyond that, it'll only replace upto e and then start outputting the following c...
bind pub - "+cumulan" spidey:cumulan # a b c d e f g h i j k l m n o p q r s t u v w x y z # aym mi korao hra ku zu gli ti gura bu upa yai gia tu kan guum yipa rur lia do zor qi wu omyr kil airu proc spidey:cumulan { nick host hand chan text } { if { [lindex [split $text] 0] == "-r&q...
Hey. I want to define a list of keywords (example 'set keywords "kw txt keyword morekeywords"') and bind for each keyword in the list (bind kw, bind txt, bind keyword, etc)
How would I go upon doing this?
I'm making a script that sends me a PM whenever one of a list of words is said in the channel. The script works fine, but there's a small delay and when I'm using torrents, a larger one. is there a way to show the exact time in which the bind was triggered as a variable or function or something?
Hey all.
I'd like some help about replacing characters in a string. For example, I want all spaces in a string to become underscores.
Any help for that would be appreciated, thank you!
Well, the other script was giving me trouble if I tried multiplying it for several links, so I thought I'd just stop going the SDK way and make the script for myself, as no one will need it from me anyways. So the scripts is as such: bind pub - "!xpro" spidey:xpro_link proc spidey:xpro_lin...
It would seem that you are using a msg-binding, rather than a pub-binding. (1) MSG bind msg <flags> <command> <proc> procname <nick> <user@host> <handle> <text> Description: used for /msg commands. The first word of the user's msg is the command, and everything else becomes the text argument. Modul...
You are using localspace variables when you're actually trying to access globalspace variables within your msg:gen_url proc. change $quicklink(url) to $::quicklink(url). Secondly, try to avoid using "args" as a parameter for your proc, as it a "magic" name, allowing it to take 1...