Forum

privmsg on timer
 
Notifications
Clear all

[Solved] privmsg on timer


brendan f
(@goatstew)
New Member
Joined: 2 months ago
Posts: 2
Topic starter  

Hi, i would like a script to privmsg a nick on a timer every 80 minutes.


Quote
Topic Tags
BLaCkShaDoW
(@blackshadow)
Member Admin
Joined: 10 months ago
Posts: 85
 
##
#message to be sent
set message_tobe_sent "My message"

##
#Nick whom the eggdrop will msg
set nick_tobe_messaged "Nick1"

if {![info exists msg_nick]} {
    timer 80 proc:msg_nick
    set msg_nick 1
}

proc proc:msg_nick {} {
    global message_tobe_sent nick_tobe_messaged
    putserv "PRIVMSG $nick_tobe_messaged :$message_tobe_sent"
    timer 80 proc:msg_nick
}
This post was modified 2 months ago by BLaCkShaDoW

ReplyQuote
brendan f
(@goatstew)
New Member
Joined: 2 months ago
Posts: 2
Topic starter  

Thanks BLaCkShaDoW.

Will check this out after work.


ReplyQuote
Share: