well i was bord and coded up a basic nudge one, needs a nice GUI to add words to though, something like the filesender GUI would be nice.
code:
var autoSendNudge = false;
var words = new Array;
words = ("hello", "hi", "hey");
function OnEvent_ChatWndReceiveMessage(wnd, user, message, kind)
{
if(autoSendNudge == true)
{
for(var i = 0; i < words.length; i++)
{
if(message.match(words[i]) != null)
{
wnd.SendMessage("/nudge");
break;
}
}
// Check for command
if(message.charAt(0) == "!")
{
var command;
if(message.indexOf(" ") == -1)
{
command = message.substring(1, message.length);//.trim();
}
Debug.Trace("Command: "+command);
switch(command)
{
case "nudge":
var message;
message = "/nudge";
wnd.SendMessage(message);
message = '';
break;
}
}
}
return message;
}