Re: How to Monitor a channel and save msg text - 02/01/24 09:25 AM
Hi all,
i want to Monitor a channel and save the essage written to a logfile. Channel to monitor is calles movies and i want to sae all messages that contain "german" i started with the following code but nothing happens.
what do i miss ?
; Set the channel to monitor
set #channel movies
; Set the keyword to search for
set %keyword german
on *:TEXT:*:#:%channel: {
; Check if the message contains the keyword
if ($1- iswm %keyword) {
; Log the message to a file on drive D
write D:\movies_log.txt $timestamp $+ " " $nick $+ ": " $1-
}
}
; End of script
i want to Monitor a channel and save the essage written to a logfile. Channel to monitor is calles movies and i want to sae all messages that contain "german" i started with the following code but nothing happens.
what do i miss ?
; Set the channel to monitor
set #channel movies
; Set the keyword to search for
set %keyword german
on *:TEXT:*:#:%channel: {
; Check if the message contains the keyword
if ($1- iswm %keyword) {
; Log the message to a file on drive D
write D:\movies_log.txt $timestamp $+ " " $nick $+ ": " $1-
}
}
; End of script