utimer 10 [list gen:announce_enabled]

proc gen:announce_enabled {} {
    global mainchan
    putserv "PRIVMSG $mainchan :Key Generator is enabled! Be Careful!!"
    utimer 10 [list gen:announce_enabled] # putting at the bottom will make it cycle, but be careful when u rehash
}