code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
Debug.Trace(Message.split(' ')[0])
if(Message.split(" ")[0] == "/dsignout")
{
MsgPlus.AddTimer("signout", Message.split(" ")[1] * 60000)
return ""
}
}
function OnEvent_Timer(signout)
{
Messenger.Signout()
}
function OnGetScriptCommands()
{
var commands = "<ScriptCommands>"
commands += " <Command>"
commands += " <Name>dsignout</Name>"
commands += " <Description>Signs you out after a specified amount of time</Description>"
commands += " <Parameters><time in seconds></Parameters>"
commands += " </Command>"
commands += "</ScriptCommands>"
return commands
}
use /dsignout 5 to sign out after 5
seconds minutes.
minutes will be a bit more useful for this purpose