![]() |
stop posts on chan. - Printable Version +- Communauté sur les Eggdrops - Community about Eggdrops (https://forum.eggdrop.fr) +-- Forum: Eggdrop et TCL (https://forum.eggdrop.fr/forumdisplay.php?fid=8) +--- Forum: Scripts TCL (https://forum.eggdrop.fr/forumdisplay.php?fid=4) +--- Thread: stop posts on chan. (/showthread.php?tid=1272) |
stop posts on chan. - heartbroken - 18/11/2012 salut a tous.. hi .a friend of mine ask me for help for about a code what he uses on his eggdrop. he said he uses this code for triggering some help lines on channel.its a very simple code what he used. so he asked me that some help triggers are too long,and i want to cut that off with a "!stop" command and than bot should stop posting these help lines on channel. (by the way those help lines not in a readable .txt file) so i tried couple of things allnight long on this code.but i couldn't make it to stop the bot posting lines.here it is my edit of the code : Code: bind pub - !start foo_start and speechless suggest me to edit like that,they said it should work like that.here is the second edition of this code: Code: bind pub - !start foo_start and it has some terrible issues : like when it starts !stop not working and gave an error on partyline like : invalid timerID stop_foo.. and if when make it !stop you have to restart the bot after to try second time !start command..so its useless and not working for to stop posting lines. so i would like to open a new thread in here for to ask your advices and suggestions for about this issue. thanks in advance. RE: stop posts on chan. - CrazyCat - 18/11/2012 Well, your timers'ID aren't 1 to 4, you must store the [list [utimer ....]] in foo_status. tcl
RE: stop posts on chan. - heartbroken - 19/11/2012 hi CrazyCat thank you for your quick reply:) i've also tried your edition but unfortunatly i got this on partyline Code: Tcl error [stop_foo]: can't read "foo_status": no such variable Code: if {[array exists dur_status]} { no any error no any posts and no stop :P interesting.... [i don't know about if this could be the reason these errors but i've been trying these codes on eggdrop1.8 latest snapshot with tcl8.6b3] thank you ... RE: stop posts on chan. - heartbroken - 21/11/2012 re.. uhm sorry my bad i've tried to add a line like Code: if {[array exists foo_status]} { first i tried yours but i seen an error and i tried like this . Code: bind pub - !start foo_start RE: stop posts on chan. - CrazyCat - 21/11/2012 Juste a small thing: don't use reserved keyword as variables. So, avoid: tcl
Try : tcl
RE: stop posts on chan. - heartbroken - 21/11/2012 slt..hi. first i've tried like this : Code: bind pub - !start foo_start Code: bind pub - !start foo_start i guess i'm gonna give up ... i wanna thank you for your patience and for your advance. i realy appreciated for your help thanks anyway CrazyCat ^^ RE: stop posts on chan. - CrazyCat - 22/11/2012 I'll do some tries today, and I'll try to give you a working solution. RE: stop posts on chan. - Artix - 23/11/2012 Just a random thought there, but shouldn't it be [isop] rather than ![isop] o_o ? Anyway - if i understood correctly what you want is simply a custom output queue ? Here's a somewhat different approach than CC's. I tested it quickly with a bare tcl interp, it should work on eggdrops just as well : Code: set ::helpQueue {} |