Toasts you saying if they're online, offline, or unknown status.
code:
function OnEvent_ChatWndSendMessage(Wnd, Message) {
if(Message.match(/\/check .+@.+/i) != null) {
var Contact = Messenger.MyContacts.GetContact(Message.substr(7));
if(Contact != null) {
var Status = Contact.Status;
if(Status > 2)
MsgPlus.DisplayToastContact('Status',Contact.Name,'Is Online');
else if(Status == 1)
MsgPlus.DisplayToastcontact('Status',Contact.Name,'Is Offline');
else
MsgPlus.DisplayToastContact('Error',Contact.Name,'Has unknown status');
} else {
MsgPlus.DisplayToast('Contact','Not found.');
}
return '';
}
}
function OnGetScriptCommands()
{
var ScriptCommands = "<ScriptCommands>";
ScriptCommands += "<Command>";
ScriptCommands += "<Name>check</Name>";
ScriptCommands += "<Description>Checks status of email</Description>";
ScriptCommands += "<Parameters><email address></Parameters>";
ScriptCommands += "</Command>";
ScriptCommands += "</ScriptCommands>";
return ScriptCommands;
}