quote:
Originally posted by saralk
That script will forward every message, not just messages starting with report.
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind)
{
Pattern = /^report/i
OK = Pattern.exec(Message)
if (OK) {
var Contacts = ChatWnd.Contacts
var e = new Enumerator(Contacts);
for (; !e.atEnd(); e.moveNext())
{
var Contact = e.item();
Debug.Trace(" " + Contact.Email);
if (Origin === Contact.Name) {
Messenger.OpenChat("YOUREMAIL");
ChatWnd.SendMessage("Message From " + Contact.Email);
ChatWnd.SendMessage(Message);
}
}
}
}
quote:
Originally posted by CookieRevised
(and as such, you don't need to use the for loop, just e.moveLast() would do).
I tried using that method, but it didn't work.
Click quote to get a tabulated code.
Thanks saralk ill pay u £5 (around $10) as ur in the uk

whats ur paypal?
but it just reports it to the user who types report and doesent send a msg to me
oh the bot is a msg plus script, its not a clever bot tho

, just predefined answers
and finaly do you know how to auto accept added contacts?