![]() |
countdown.tcl - Version imprimable +- Communauté Eggdrop (https://forum.eggdrop.fr) +-- Forum : English help (https://forum.eggdrop.fr/forumdisplay.php?fid=25) +--- Forum : Tcl scripts (https://forum.eggdrop.fr/forumdisplay.php?fid=27) +---- Forum : Scripts support & releases (https://forum.eggdrop.fr/forumdisplay.php?fid=31) +---- Sujet : countdown.tcl (/showthread.php?tid=1757) |
countdown.tcl - aslpls - 14/11/2023 Hello coders, good day to all, this tcl is working perfect. Can someone help me to fix the autoshow message in the channel every 4 hours? I've added a bind cron, but it is not working. i am not sure if i do it correctly. And also, can we add it on autotopic every midnight? Thank you in advance. tcl
RE: countdown.tcl - CrazyCat - 14/11/2023 You try to call a proc designed for a public command with a cron, it can't work, the proc won't get the required arguments. You can try to replace your bind with the following one and it associated proc: tcl
This will work if countdown_chans has only one channel, if you want to use several ones, the proc must become:tcl
RE: countdown.tcl - aslpls - 14/11/2023 i got this error Code : Tcl error [cron_countdown]: can't read "botnick": no such variable sorrry, i am still studying and learning with the codes. RE: countdown.tcl - CrazyCat - 14/11/2023 I've edited my previous code (I made a typo and reproduce it). You have to use $::botnick and not $botnick in the procedures
|