avatar cmd & update assistant

This commit is contained in:
rafi1212122
2023-06-01 12:20:51 +07:00
parent e71b6034b9
commit 54ae5efabd
6 changed files with 143 additions and 13 deletions

View File

@@ -25,19 +25,25 @@
{
args.RemoveAt(0);
if (Cmd.CmdType == CommandType.All || Cmd.CmdType == CommandType.Console)
try
{
Cmd.Run(args.ToArray());
if (Cmd.CmdType == CommandType.All || Cmd.CmdType == CommandType.Console)
{
Cmd.Run(args.ToArray());
}
else if(session != null)
{
Cmd.Run(session, args.ToArray());
Command.c.Log("Command executed");
}
else
{
Command.c.Error("Invalid usage, try selecting session first with target");
}
}
else if(session != null)
catch (Exception ex)
{
Command.c.Log("Command executed");
}
else
{
Command.c.Error("Invalid usage, try selecting session first with target");
continue;
Command.c.Error(ex.Message);
}
continue;