コード例 #1
0
 private void addCommand(string username)
 {
     if (string.IsNullOrWhiteSpace(username))
     {
         _comm.SendMessage(_msg.From, "Please specify a user to add");
     }
     else
     {
         _comm.AddUser(new BotUser()
         {
             Name = username
         });
         _comm.SendMessage(_msg.From, string.Format("'{0}' added", username));
     }
 }