Sending Email On Deop

Old posts that have not been replied to for several years.
Locked
S
SuicidalDream

Sending Email On Deop

Post by SuicidalDream »

I need a script that will send an email to my cellphone (it has a regular email address) whenever the bot is deoped, including the time, channel & nick of the person deoping it, but I don't know how I would even start to do this. I mean I know I'd have to use sendmail & but TCL wise I'm clueless help???

Thanks in advance :)

- SD
m
mortician
Voice
Posts: 37
Joined: Sun Sep 22, 2002 6:35 pm
Location: Tsjakamaka
Contact:

Post by mortician »

Code: Select all

bind mode - *-o* deopMail
proc deopMail {nick host hand chan mdechg dnick} {
global botnick
  if {$dnick == $botnick} {
  exec echo "$nick deopped me on $chan at [date] [time]" | sendmail my@email.com
  }
}
It is a mistake to think you can solve any major problems just with potatoes.
Locked