hey all,
i'm trying to write a script where everytime a user says something in the main channel, the script will automatically copy what that person said and open a new window and paste it there.
kinda like:
[9:00a] <JohnDoe> New Announcement
[9:00a] <JohnDoe> Name
[9:00a] <JohnDoe> URL
and it'll automatically open a new window (named JohnDoe for example) and it'll basically copy all that JohnDoe said in the main channel.
here's my non-working script so far:
on *:TEXT:*:#sample_channel:{
if ($nick == JohnDoe) && (New isin $1-) && (Announcement isin $1-) {
splay alarm.wav
window -b @JohnDoe
echo @JohnDoe 7[ $+ $time(hh:nn:ss) $+ 7] 4 $+ $1-
}
else {
if ($nick == JohnDoe) && (Name.. isin $1-) {
window -b @JohnDoe
echo @JohnDoe 7[ $+ $time(hh:nn:ss) $+ 7] 1 $+ $1-
}
else {
if ($nick == JohnDoe) && (URL.. isin $1-) {
window -b @JohnDoe
echo @JohnDoe 7[ $+ $time(hh:nn:ss) $+ 7] 13 $+ $1-
echo @JohnDoe 7[ $+ $time(hh:nn:ss) $+ 7] 8 $+ -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
i can get the first line to show up, that is, the time and the message "New Announcement." however, i can't get the name and the URL to show up in that new window.
any help?
thanks!