On text "example", take 4 next lines to variables - 06/10/08 05:28 AM
Hi,
I've got this little nut to crack. One channel where i am, has newsbot. Always when news are coming, it says "News!" and 4 next lines are: News topic, Group, snippet from news, and link to news.
What i want to do? If news topic contains specified things, i wanted to say it to my other channel.
02:10:00 <NewsBot> News!
02:10:00 <NewsBot> Topic: NASA uses mIRC!
02:10:00 <NewsBot> Group: Comedy
02:10:00 <NewsBot> Snippet: It has proved that nasa uses mIRC...
02:10:00 <NewsBot> Link: http://this.is.just.example.com
Basically it would be enough if i could catch topic and link to news. So if topic contains word "NASA", i would say to other channel <TheOner> News! NASA uses mIRC! - http://...
I got this far ( ), and started to think that how i would get next 4 lines to variables or array? So i could check if topic contains specified word etc. etc.
ON *:TEXT:News!:*: { if ($nick = NewsBot) { } }
I've got this little nut to crack. One channel where i am, has newsbot. Always when news are coming, it says "News!" and 4 next lines are: News topic, Group, snippet from news, and link to news.
What i want to do? If news topic contains specified things, i wanted to say it to my other channel.
02:10:00 <NewsBot> News!
02:10:00 <NewsBot> Topic: NASA uses mIRC!
02:10:00 <NewsBot> Group: Comedy
02:10:00 <NewsBot> Snippet: It has proved that nasa uses mIRC...
02:10:00 <NewsBot> Link: http://this.is.just.example.com
Basically it would be enough if i could catch topic and link to news. So if topic contains word "NASA", i would say to other channel <TheOner> News! NASA uses mIRC! - http://...
I got this far ( ), and started to think that how i would get next 4 lines to variables or array? So i could check if topic contains specified word etc. etc.
ON *:TEXT:News!:*: { if ($nick = NewsBot) { } }