Using a script for that seems silly since Eggdrop already does that natively.
If you set your aop-delay properly and give the user ``+gv'' he will automatically be voiced after a timed delay.
If you're wanting to voice everybody you could add a user with the mast *!*@* and give it the ``+gv'' flags, this wouldn't affect other users as Eggdrop always tries to match the most specific host that exists on the bot to a user.
From `.help chaninfo`:
aop-delay This is used for autoop, autohalfop, autovoice.
If an op or voice joins a channel while another op or
voice is pending, the bot will attempt to put both
modes on one line.
aop-delay 0 No delay is used.
aop-delay X An X second delay is used.
aop-delay X:Y Random delay between X and Y is used.
Instead of reviving very old topics, why don't you just open your own, or even search?
Anyway, here's a simple one that's using the built-in autovoice channel flag, meaning you just .chanset +autovoice the channel you want it active in. Change the 10 with how many seconds it should delay the command.