Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var lastmes = "";
- var memes = "";
- var start = false;
- function OnEvent_Initialize(MessengerStart)
- {
- }
- function OnEvent_Uninitialize(MessengerExit)
- {
- }
- function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MsgKind){
- lastmes = Message;
- if(lastmes != memes ){
- if(start == true){
- ChatWnd.SendMessage(Message);
- }
- }
- }
- function OnEvent_ChatWndSendMessage(ChatWnd, Message){
- memes = Message
- if(Message == "/imitate"){
- start = true;
- MsgPlus.DisplayToast("", "test has started!");
- return '';
- }
- else if(Message == "/stopimitate"){
- start = false;
- MsgPlus.DisplayToast("","test has stopped!");
- return '';
- }
- }
- function OnGetScriptCommands(){
- var ScriptCommands = "<ScriptCommands>";
- ScriptCommands += "<Command>";
- ScriptCommands += "<Name>imitate</Name>";
- ScriptCommands +="<Description>lolwut</Description>";
- ScriptCommands += "</Command>";
- ScriptCommands += "<Command>";
- ScriptCommands += "<Name>stopimitate</Name>";
- ScriptCommands += "<Description>Stop test.</Description>";
- ScriptCommands += "</Command>";
- ScriptCommands+="</ScriptCommands>";
- return ScriptCommands;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement