public override string Run(McTcpClient handler, string command)
 {
     if (hasArg(command))
     {
         handler.BotLoad(new ChatBots.Script(getArg(command)));
         return "";
     }
     else return CMDDesc;
 }
示例#2
0
 public override string Run(McTcpClient handler, string command, Dictionary <string, object> localVars)
 {
     if (hasArg(command))
     {
         handler.BotLoad(new ChatBots.Script(getArg(command), null, localVars));
         return("");
     }
     else
     {
         return(CMDDesc);
     }
 }
示例#3
0
文件: Script.cs 项目: savioacp/HtBot
 public override string Run(McTcpClient handler, string command)
 {
     if (hasArg(command))
     {
         handler.BotLoad(new ChatBots.Script(getArg(command)));
         return("");
     }
     else
     {
         return(CMDDesc);
     }
 }