I am trying to create a script that will take user msg to bot, does some matching and relays it to chan.
here is how it looks in reality:
1. let's say i have a list of words:
Code: Select all
set word {
flower
bee
house
}
example:
Code: Select all
/msg bot house is tv show
4. if first word matches then say in chan:
Code: Select all
<bot> $nick sayd $word
so example:
Code: Select all
<user>/msg <bot> house is tv show
<bot> <user> says word [b]house[/b]
<user>/msg <bot> there is a house in tv right now
<bot> <user> says: there is a house in tv right now
any help with this would be appreciated
Thank you